-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
217 lines (193 loc) · 6.21 KB
/
pyproject.toml
File metadata and controls
217 lines (193 loc) · 6.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
# =============================================================================
# BLOOM LIMS Project Configuration
# =============================================================================
# ENVIRONMENT MANAGEMENT: This project uses CONDA for environment management.
# The supported local entrypoint is `source ./activate <deploy-name>`.
# Activation creates a deployment-scoped conda environment named
# `BLOOM-<deploy-name>` from repo-root `environment.yaml`.
#
# `environment.yaml` is system/bootstrap tooling only; all Python libraries
# belong in [project.dependencies].
#
# To set up the environment:
# source ./activate <deploy-name>
#
# See environment.yaml for the non-Python/system dependencies.
# =============================================================================
[build-system]
requires = ["setuptools>=61.0", "wheel", "setuptools-scm>=8.0"]
build-backend = "setuptools.build_meta"
[project]
name = "bloom_lims"
dynamic = ["version"]
description = "Templated Abstract Polymorphic LIMS - A Laboratory Information Management System"
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.12"
dependencies = [
"cli-core-yo==2.1.0",
"daylily-tapdb==6.0.4",
"daylily-auth-cognito==2.1.1",
"IPython>=8.18.1",
"bandit[toml]>=1.8.0",
"black>=24.0.0",
"psycopg2==2.9.9",
"boto3>=1.34.0",
"djlint",
"fastapi>=0.110.0",
"httpx>=0.27.2",
"itsdangerous>=2.1.2",
"Jinja2>=3.0.3",
"matplotlib>=3.8.0",
"moto>=5.0.0",
"mypy>=1.0",
"pandas>=2.2.0",
"playwright>=1.42.0",
"pre-commit>=3.8.0",
"pydantic>=2.6.0",
"pydantic-settings>=2.0.0",
"psutil>=5.9.0",
"PyJWT>=2.8.0",
"python-multipart>=0.0.9",
"PyYAML>=6.0",
"pytest>=8.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=4.1.0",
"pytest-playwright>=0.4.4",
"requests>=2.28.2",
"requests-mock>=1.11.0",
"rich>=13.0",
"ruff>=0.1.0",
"sqlalchemy>=2.0.23",
"starlette>=0.35.1",
"uvicorn>=0.28.0",
"daylily-carrier-tracking==0.5.1",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Intended Audience :: Healthcare Industry",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
]
keywords = ["lims", "laboratory", "informatics", "bioinformatics", "sample-management"]
[project.urls]
Homepage = "https://github.com/Daylily-Informatics/bloom"
Repository = "https://github.com/Daylily-Informatics/bloom.git"
Issues = "https://github.com/Daylily-Informatics/bloom/issues"
[project.scripts]
bloom = "bloom_lims.cli:main"
[tool.setuptools_scm]
version_file = "bloom_lims/_scm_version.py"
fallback_version = "0.0.0.dev0"
[tool.setuptools.packages.find]
where = ["."]
include = ["bloom_lims*"]
[tool.setuptools.package-data]
bloom_lims = ["etc/*.yaml", "etc/*.json"]
# =============================================================================
# BLOOM Environment Configuration
# =============================================================================
# This section documents the conda environment configuration for tools and
# AI assistants that need to understand the project's environment management.
[tool.bloom]
# Environment management method - DO NOT USE pip/poetry/venv for this project
environment_manager = "conda"
# The deployment-scoped conda environment name pattern
conda_environment_name = "BLOOM-<deploy-name>"
# The conda environment definition file
conda_environment_file = "environment.yaml"
# Commands to set up the development environment
setup_commands = [
"source ./activate <deploy-name>",
]
# Command to run tests (must activate conda environment first)
test_command = "source ./activate <deploy-name> && pytest"
# =============================================================================
# Tool Configurations
# =============================================================================
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --tb=short --cov=bloom_lims --cov=main --cov-report=term-missing --cov-report=html:htmlcov"
markers = [
"api: marks tests as API tests",
"e2e: marks tests as end-to-end tests requiring playwright",
]
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::PendingDeprecationWarning",
]
[tool.coverage.run]
source = ["bloom_lims", "main"]
omit = [
"*/tests/*",
"*/__pycache__/*",
"*/database/*",
]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
fail_under = 39
show_missing = true
[tool.black]
line-length = 88
target-version = ['py312']
include = '\.pyi?$'
extend-exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| bloom_lims/database
)/
'''
[tool.isort]
profile = "black"
line_length = 88
skip_gitignore = true
[tool.ruff]
line-length = 88
target-version = "py312"
[tool.ruff.lint]
select = ["E", "F", "W", "I"]
ignore = ["E501"]
[tool.ruff.lint.per-file-ignores]
"bloom_lims/gui/routes/operations.py" = ["E402", "E712", "F401", "F841", "I001"]
[tool.bandit]
exclude_dirs = ["tests", "bloom_lims/database", "stage_to_delete"]
skips = [
"B101", # allow assert in non-test code (used extensively)
"B105", # false positives on token/status/template constants
"B106", # false positives on placeholder middleware/config values in legacy paths
"B110", # intentional best-effort config/session cleanup paths
"B311", # non-cryptographic randomness in legacy workflows/UI naming
"B404", # CLI/admin subprocess usage is intentional
"B603", # subprocess calls execute trusted local tools
"B607", # subprocess calls rely on known PATH tools in operator environments
"B608", # legacy SQL fragments are operator-authored/static
]
[tool.mypy]
python_version = "3.12"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true