-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
118 lines (99 loc) · 3.46 KB
/
Copy pathpyproject.toml
File metadata and controls
118 lines (99 loc) · 3.46 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
[build-system]
requires = ["hatchling >= 1.26"]
build-backend = "hatchling.build"
[project]
name='popgen_genotyping'
description='Genotyping microarray pipeline using CPG Flow'
readme = "README.md"
# currently cpg-flow is pinned to this version
requires-python = ">=3.10,<3.12"
version='0.1.0'
license={ "file" = "LICENSE" }
classifiers=[
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: Unix',
'Programming Language :: Python',
'Topic :: Scientific/Engineering :: Bio-Informatics',
]
# TODO Audit these dependencies later, lifted from
# Harper's temp_large_cohort_migration
dependencies=[
'cpg-flow>=v1.0.1',
'loguru',
'pandas>=2.0',
'pydantic>=2.12',
]
[project.urls]
Repository = "https://github.com/populationgenomics/popgen-genotyping"
[project.optional-dependencies]
# various requirements when running cpg-flow/analysis-runner
cpg = [
'cpg-flow>=v1.0.1',
]
test = [
'bump2version',
'pre-commit',
'pytest',
]
[project.scripts]
# the workflow runner script - entrypoint for the pipeline
run_workflow = 'popgen_genotyping.run_workflow:cli_main'
[tool.hatch.build.targets.wheel]
packages = ["src/popgen_genotyping"]
[tool.hatch.build.targets.wheel.sources]
"src" = ""
[tool.hatch.metadata]
allow-direct-references = true
[tool.black]
line-length = 120
skip-string-normalization = true
exclude = '''
/(
venv
| \.mypy_cache
| \.venv
| build
| dist
)/
'''
[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]
# ignore pydocstyle, flake8-boolean-trap (FBT)
select = ["A", "B", "C", "E", "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", "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 = [
"ANN001", # Missing type annotation for function argument
"ANN201", # Missing return type annotation for public function
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
"ANN204", # Missing type annotation for special method `__init__`
"COM812", # Trailing comma prohibited
"E731", # Do not assign a lambda expression, use a def
"G004", # Logging statement uses f-string
"PLW0603", # Using the global statement to update `<VAR>` is discouraged
"Q000", # Single quotes found but double quotes preferred
"Q003", # Change outer quotes to avoid escaping
"S101", # Use of assert detected
"PLR0912", # Too many branches (> 12)
"PLR0913", # Too many arguments in function (> 5)
"C901", # method is too complex (> 10 conditions)
"N999", # invalid module name (not lower-case and potholes)
"I001", # Import block is un-sorted or un-formatted (to remove soon)
]
[tool.ruff.lint.per-file-ignores]
"test/**/*.py" = ["PLR2004"]
[tool.ruff.lint.pydocstyle]
convention = 'pep257'
[tool.ruff.lint.isort]
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]