-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
226 lines (204 loc) · 5.57 KB
/
pyproject.toml
File metadata and controls
226 lines (204 loc) · 5.57 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
218
219
220
221
222
223
224
225
226
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools >= 70.1", "setuptools_scm[toml] ~= 8.1"]
[dependency-groups]
dev = [
"deptry>=0.23",
"ipython",
"jupyter",
"mkdocs-awesome-nav>=3.1.2",
"mkdocs-material>=9.6",
"mkdocs>=1.6",
"mkdocstrings[python]>=0.30",
"mypy>=1.17",
"pre-commit>=3.8",
"pytest-cov>=4.1",
"pytest-recording",
"pytest~=7.4",
"ruff>=0.12",
"toml-sort",
"tox-uv>=1.28",
"vcrpy",
]
[project]
authors = [
{email = "biocommons-dev@googlegroups.com", name = "biocommons contributors"}
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
"Topic :: Software Development :: Libraries :: Python Modules"
]
dependencies = ["coloredlogs ~= 15.0", "pyyaml ~= 6.0"]
description = "biocommons.example package (namespaced)"
dynamic = ["version"]
keywords = [
"biocommons",
"bioinformatics",
"computational biology",
"genome variation",
"genomics",
"hgvs",
"variation"
]
license = "Apache-2.0"
name = "python-package"
readme = "README.md"
requires-python = ">=3.12"
[project.optional-dependencies]
example = [
"pyyaml"
]
[project.scripts]
marvin-quote = "biocommons.example.__main__:main"
[project.urls]
Documentation = "https://biocommons.github.io/python-package/"
Homepage = "https://github.com/biocommons/python-package/"
Issues = "https://github.com/biocommons/python-package/issues/"
Repository = "https://github.com/biocommons/python-package/"
[tool.coverage]
[tool.coverage.report]
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
"if self.debug",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if __name__ == .__main__.:",
]
show_missing = true
skip_empty = true
[tool.coverage.run]
branch = true
omit = [
"*_test.py",
"*/test/*",
"*/tests/*",
]
source = ["src"]
[tool.deptry]
[tool.deptry.package_module_name_map]
# map package name to import name
# Making this explicit suppresses deptry notices
coloredlogs = "coloredlogs"
mkdocs = "mkdocs"
mkdocs-material = "mkdocs_material"
mkdocstrings = "mkdocstrings"
mypy = "mypy"
pre-commit = "pre_commit"
pytest = "pytest"
pytest-cov = "pytest_cov"
pyyaml = "yaml"
ruff = "ruff"
tox-uv = "tox_uv"
ty = "ty"
[tool.pytest.ini_options]
addopts = "-s -v -x --strict-markers -m 'not extra' --doctest-modules --cov=src"
doctest_optionflags = [
"ALLOW_BYTES",
"ALLOW_UNICODE",
"ELLIPSIS",
"IGNORE_EXCEPTION_DETAIL",
"NORMALIZE_WHITESPACE"
]
markers = [
"network: tests that require network connectivity",
"slow: slow tests that should be run infrequently"
]
testpaths = ["src", "tests"]
[tool.ruff]
line-length = 100
src = ["src", "tests"]
target-version = "py313"
[tool.ruff.format]
docstring-code-format = true
preview = true
quote-style = "double"
[tool.ruff.lint]
fixable = [
"B",
"C4",
"D",
"EM",
"F401",
"F541",
"I",
"PERF",
"PIE",
"PT",
"RET",
"RSE",
"RUF",
"SIM",
"UP"
]
ignore = [
"E111",
"E114",
"E117",
"E501",
"E731",
"N801",
"N802",
"PLR0913",
"RET504",
"S321",
"W191",
]
select = [
"A", # https://docs.astral.sh/ruff/rules/#flake8-builtins-a
"ARG", # https://docs.astral.sh/ruff/rules/#flake8-unused-arguments-arg
"B", # https://docs.astral.sh/ruff/rules/#flake8-bugbear-b
"C4", # https://docs.astral.sh/ruff/rules/#flake8-comprehensions-c4
"DTZ", # https://docs.astral.sh/ruff/rules/#flake8-datetimez-dtz
"E",
"EM", # https://docs.astral.sh/ruff/rules/#flake8-errmsg-em
"F", # https://docs.astral.sh/ruff/rules/#pyflakes-f
"G", # https://docs.astral.sh/ruff/rules/#flake8-logging-format-g
"I", # https://docs.astral.sh/ruff/rules/#isort-i
"LOG", # https://docs.astral.sh/ruff/rules/#flake8-logging-log
"N", # https://docs.astral.sh/ruff/rules/#pep8-naming-n
"PERF", # https://docs.astral.sh/ruff/rules/#perflint-perf
"PIE", # https://docs.astral.sh/ruff/rules/#flake8-pie-pie
"PL", # https://docs.astral.sh/ruff/rules/#pylint-pl
"PT", # https://docs.astral.sh/ruff/rules/#flake8-pytest-style-pt
"PTH", # https://docs.astral.sh/ruff/rules/#flake8-use-pathlib-pth
"RET", # https://docs.astral.sh/ruff/rules/#flake8-return-ret
"RSE", # https://docs.astral.sh/ruff/rules/#flake8-raise-rse
"RUF", # https://docs.astral.sh/ruff/rules/#ruff-specific-rules-ruf
"S", # https://docs.astral.sh/ruff/rules/#flake8-bandit-s
"SIM", # https://docs.astral.sh/ruff/rules/#flake8-simplify-sim
"TRY", # https://docs.astral.sh/ruff/rules/#tryceratops-try
"UP", # https://docs.astral.sh/ruff/rules/#pyupgrade-up
"W", # https://docs.astral.sh/ruff/rules/#pycodestyle-e-w
"YTT" # https://docs.astral.sh/ruff/rules/#flake8-2020-ytt
]
[tool.ruff.lint.extend-per-file-ignores]
"tests/**/*.py" = [
"PLR2004", # Magic value used in comparison
"S101", # Use of `assert` detected
]
[tool.setuptools]
include-package-data = true
package-dir = {"" = "src"}
zip-safe = true
[tool.setuptools.package-data]
# "*" = ["_data/*/*.json.gz"]
# "*" = ["*.gz", "*.json", "*.yaml"]
"*" = ["_data/*"]
[tool.setuptools.packages.find]
exclude = ["*.pyc", "__pycache__"]
namespaces = true
where = ["src"]
[tool.setuptools_scm]