generated from populationgenomics/cpg-python-template-repo
-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
59 lines (50 loc) · 2.11 KB
/
pyproject.toml
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
[tool.black]
line-length = 120
skip-string-normalization = true
exclude = '''
/(
venv
| \.mypy_cache
| \.tox
| \.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.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
"ANN101", # Missing type annotation for self in method
"ANN102", # Missing type annotation for `cls` in classmethod
"ANN201", # Missing return type annotation for public function
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
"ANN204", # Missing type annotation for special method `__init__`
"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
"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.format]
indent-style = 'space'
quote-style = "single"
[tool.ruff.lint.isort]
section-order = ["future", "standard-library", "third-party", "hail", "cpg", "first-party", "local-folder"]
[tool.ruff.lint.isort.sections]
cpg = ["metamist", "talos"]
hail = ["hail", "hailtop"]