-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
162 lines (142 loc) · 4.2 KB
/
pyproject.toml
File metadata and controls
162 lines (142 loc) · 4.2 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
[build-system]
requires = ["hatchling", "uv-dynamic-versioning"]
build-backend = "hatchling.build"
[project]
name = "hla_algorithm"
description = 'Python implementation of the BC-CfE HLA interpretation algorithm'
readme = "README.md"
requires-python = ">=3.11,<=3.13"
license = "MIT"
keywords = []
authors = [
{ name = "Rosemary McCloskey", email = "retired@bccfe.ca" },
{ name = "David Rickett", email = "drickett@bccfe.ca" },
{ name = "Richard Liang", email = "rliang@bccfe.ca" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dynamic = ["version"]
dependencies = [
"biopython>=1.85",
"numpy>=2.2.3",
"pydantic>=2.10.6",
"pydantic-numpy>=8.0.1",
"pyyaml>=6.0.2",
"requests>=2.32.3",
"typer>=0.15.2",
"types-pyyaml>=6.0.12.20250516",
"types-requests>=2.32.4.20250611",
]
[dependency-groups]
dev = [
"mypy>=1.15.0",
"mypy-extensions>=1.0.0",
"pandas>=2.2.3",
"pandas-stubs>=2.2.3.241126",
"pre-commit>=4.1.0",
"pytest>=8.3.5",
"pytest-cov>=6.0.0",
"pytest-html>=4.1.1",
"pytest-mock>=3.14.0",
"pytest-xdist>=3.6.1",
"ruff>=0.9.9",
"uv-dynamic-versioning>=0.8.2",
]
[project.urls]
Documentation = "https://github.com/cfe-lab/hla_algorithm/blob/main/README.md"
Issues = "https://github.com/cfe-lab/hla_algorithm/issues"
Source = "https://github.com/cfe-lab/hla_algorithm"
[project.scripts]
interpret_from_json = "hla_algorithm.interpret_from_json:main"
update_alleles = "hla_algorithm.update_alleles:main"
update_frequency_file = "hla_algorithm.update_frequency_file:main"
reformat_old_alleles = "hla_algorithm.reformat_old_alleles:main"
[tool.hatch.version]
source = "uv-dynamic-versioning"
[tool.hatch.build]
include = [
"src/hla_algorithm/_version.py",
"src/hla_algorithm/__init__.py",
"src/hla_algorithm/__main__.py",
"src/hla_algorithm/hla_algorithm.py",
"src/hla_algorithm/interpret_from_json_lib.py",
"src/hla_algorithm/interpret_from_json.py",
"src/hla_algorithm/models.py",
"src/hla_algorithm/py.typed",
"src/hla_algorithm/reformat_old_alleles.py",
"src/hla_algorithm/update_alleles.py",
"src/hla_algorithm/update_frequency_file_lib.py",
"src/hla_algorithm/update_frequency_file.py",
"src/hla_algorithm/utils.py",
"src/hla_algorithm/default_data/hla_standards.yaml",
"src/hla_algorithm/default_data/hla_frequencies.csv",
]
exclude = [
"tests",
]
skip-excluded-dirs = true
directory = "output"
[tool.hatch.build.targets.wheel]
packages = ["src/hla_algorithm"]
[tool.hatch.build.hooks.version]
path = "src/hla_algorithm/_version.py"
template = '''
__version__ = "{version}"
'''
[tool.uv]
package = true
[tool.uv-dynamic-versioning]
vcs = "git"
style = "pep440"
fallback-version = "0.0.0"
[tool.pytest.ini_options]
pythonpath = "src"
minversion = "6.0"
addopts = "-ra -n 4 --cov --cov-report term --cov-report xml --strict-markers -m 'not slow'"
testpaths = ["tests"]
markers = [
"integration: Run integration tests",
"slow: Run integration tests that take a really long time",
]
[tool.coverage.run]
branch = true
parallel = true
source = ["src"]
omit = [
"src/hla_algorithm/__init__.py",
"src/hla_algorithm/_version.py",
"src/hla_algorithm/__main__.py",
"tests/__init__.py",
"src/hla_algorithm/interpret_from_json.py",
"src/hla_algorithm/reformat_old_alleles.py",
"src/hla_algorithm/update_alleles.py",
"src/hla_algorithm/update_frequency_file.py",
"src/scripts/*.py",
]
[tool.coverage.report]
exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"]
skip_empty = true
[tool.coverage.xml]
output = 'coverage.xml'
[tool.ruff]
target-version = "py312"
[tool.ruff.format]
quote-style = "double"
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "C"]
# ignore warnings where `== True` occurs, because we're using a lot of pandas
# https://www.flake8rules.com/rules/E712.html
ignore = ["E712"]
[tool.pydocstyle]
match = "src/**/*.py"
[tool.mypy]
plugins = ["numpy.typing.mypy_plugin"]
ignore_missing_imports = true
exclude = ["scripts/"]