-
Notifications
You must be signed in to change notification settings - Fork 131
/
Copy pathpyproject.toml
64 lines (60 loc) · 2.25 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
60
61
62
63
64
[build-system]
requires = ["setuptools >= 40.6.0", "wheel", "setuptools_scm>=6.2"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
version_scheme = "release-branch-semver"
[tool.ruff]
fix = true
line-length = 79
show-fixes = true
[tool.ruff.lint]
select = ["ALL"]
ignore = [
# TODO: when replacing `prospector` with `ruff`, ignore rules that are
# overly technical or conflict with other rules.
"E501", # Disable line-too-long as this is taken care of by the formatter.
"D105", # Disable Missing docstring in magic method as these are well defined.
]
[tool.ruff.lint.per-file-ignores]
"tests/**.py" = [
"B011", # `assert False` is valid test code.
# Docstrings in tests are only needed if the code is not self-explanatory.
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
]
"test_*.py" = [
"B011", # `assert False` is valid test code.
# Docstrings in tests are only needed if the code is not self-explanatory.
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
]
[tool.ruff.lint.isort]
known-first-party = ["esmvaltool"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
# Configure linters that are run by Prospector
[tool.pylint.main]
jobs = 1 # Running more than one job in parallel crashes prospector.
[tool.pylint.basic]
good-names = [
"_", # Used by convention for unused variables
"i", "j", "k", # Used by convention for indices
"logger", # Our preferred name for the logger
]
[tool.pylint.format]
max-line-length = 79
[tool.pylint."messages control"]
disable = [
"import-error", # Needed because Codacy does not install dependencies
"file-ignored", # Disable messages about disabling checks
"line-too-long", # Disable line-too-long as this is taken care of by the formatter.
"locally-disabled", # Disable messages about disabling checks
]
[tool.pydocstyle]
convention = "numpy"