-
Notifications
You must be signed in to change notification settings - Fork 12
/
pyproject.toml
52 lines (46 loc) · 990 Bytes
/
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
[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.isort]
extend_skip_glob = [
'docs/*',
'setup.py',
'tutorials/*',
]
line_length = 88
multi_line_output = 3
profile = 'black'
py_version = 37
[tool.ruff]
extend-exclude = ['docs', 'versioneer.py', 'setup.py']
line-length = 88
target-version = 'py37'
[tool.ruff.format]
docstring-code-format = true
line-ending = 'lf'
[tool.ruff.lint]
ignore = []
select = ['A', 'B', 'E', 'F', 'UP', 'W']
[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']