-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathpyproject.toml
More file actions
50 lines (44 loc) · 1.06 KB
/
pyproject.toml
File metadata and controls
50 lines (44 loc) · 1.06 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
[tool.coverage.report]
exclude_lines = [
'if __name__ == .__main__.:',
'if TYPE_CHECKING:',
'pragma: no cover',
]
precision = 2
[tool.coverage.run]
branch = true
cover_pylib = false
omit = [
'**/__init__.py',
'**/conftest.py',
'**/nigsp/_version.py',
'**/nigsp/cli/*',
'**/nigsp/due.py',
'**/tests/**',
]
[tool.ruff]
extend-exclude = ['docs', 'versioneer.py', 'setup.py']
line-length = 88
target-version = 'py38'
[tool.ruff.format]
docstring-code-format = true
line-ending = 'lf'
[tool.ruff.lint]
ignore = []
select = ['A', 'B', 'E', 'D', 'F', 'I', 'UP', 'W']
[tool.ruff.lint.pydocstyle]
convention = 'numpy'
[tool.ruff.lint.per-file-ignores]
'*' = [
'B904', # 'Within an except clause, raise exceptions with raise ... from ...'
'UP007', # 'Use `X | Y` for type annotations', requires python 3.10
]
'*.pyi' = ['E501']
'__init__.py' = ['F401']
'_version.py' = ['UP031']
'nigsp/tests/*' = ['D']
'nigsp/__init__.py' = ['F401', 'D']
'nigsp/*/__init__.py' = ['F401', 'D']
'nigsp/_version.py' = ['UP031', 'D']
'nigsp/conftest.py' = ['D']
'nigsp/due.py' = ['D']