-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
139 lines (114 loc) · 3.99 KB
/
Copy pathpyproject.toml
File metadata and controls
139 lines (114 loc) · 3.99 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name='clinvarbitration'
description='CPG ClinVar Re-interpretation'
readme = "README.md"
version="2.2.11"
requires-python = ">=3.10,<3.12"
license={ "file" = "LICENSE" }
classifiers=[
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX',
'Operating System :: Unix',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Bio-Informatics',
]
dependencies=[
'cpg-flow~=1.3',
'pyspark==3.5.3',
'requests'
]
[project.urls]
Repository = "https://github.com/populationgenomics/ClinvArbitration"
[project.optional-dependencies]
test = [
'bump-my-version',
'pre-commit',
'pytest',
'pytest-xdist>=3.6.0',
]
cpg = [
'google-cloud-secret-manager', # used to pull secrets for the zenodo publish workflow
]
[project.scripts]
# sets off the whole workflow in cpg-flow orchestrated Stages
run_workflow = 'clinvarbitration.run_workflow:cli_main'
run_nextflow = 'clinvarbitration.stages.nextflow_stages:cli_main'
[tool.hatch.build.targets.wheel]
packages = ["src/clinvarbitration"]
exclude = [
"data/*.gz",
]
[tool.hatch.build.targets.sdist]
exclude = [
"/data/*.gz",
]
[tool.hatch.build.targets.wheel.sources]
"src" = ""
[options]
include_package_data = true
[options.package_data]
'clinvarbitration'= ['config_template.toml']
[tool.mypy]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ['test']
[tool.ruff]
line-length = 120
extend-exclude = ["venv", ".mypy_cache", ".venv", "build", "dist"]
[tool.ruff.format]
indent-style = 'space'
quote-style = "single"
[tool.ruff.lint]
select = ["A", "B", "C", "E", "E501", "F", "G", "I", "N", "Q", "S", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "ERA", "EXE", "ICN", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "UP", "YTT"]
fixable = ["A", "B", "C", "D", "E", "E501", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "ERA", "EXE", "FBT", "ICN", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "UP", "YTT"]
ignore = [
"ANN201", # Missing return type annotation for public function
"ANN204", # Missing type annotation for special method `__init__`
"Q000", # Single quotes found but double quotes preferred
"PLR0912", # Too many branches (> 12)
"PLR0913", # Too many arguments in function (> 5)
"COM819", # Trailing comma prohibited
"C901", # method is too complex (> 10 conditions)
]
[tool.ruff.lint.isort]
section-order = ["future", "standard-library", "third-party", "hail", "cpg", "first-party", "local-folder"]
[tool.ruff.lint.isort.sections]
cpg = ["cpg_flow", "cpg_utils"]
hail = ["hail", "hailtop"]
[tool.ruff.lint.per-file-ignores]
# suppress the ARG002 "Unused method argument" warning in the stages.py file
## - we don't need any generic cpg-flow arguments, but need to fit the required method signature
"src/clinvarbitration/stages.py" = ["ARG002"]
"src/clinvarbitration/nextflow_stages.py" = ["ARG002"]
"test/**" = ["S101"]
[tool.bumpversion]
current_version = "2.2.11"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = ["{major}.{minor}.{patch}"]
commit = true
message = "Bump version: {current_version} → {new_version}"
commit_args = ""
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = "version=\"{current_version}\""
replace = "version=\"{new_version}\""
[[tool.bumpversion.files]]
filename = "src/clinvarbitration/__init__.py"
search = "{current_version}"
replace = "{new_version}"
[[tool.bumpversion.files]]
filename = "Dockerfile"
search = "{current_version}"
replace = "{new_version}"
[[tool.bumpversion.files]]
filename = "src/clinvarbitration/cpg_internal/Dockerfile"
search = "{current_version}"
replace = "{new_version}"