-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
51 lines (45 loc) · 1.1 KB
/
pyproject.toml
File metadata and controls
51 lines (45 loc) · 1.1 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
[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',
'**/**/_version.py',
'**/**/cli/**',
'**/**/due.py',
'**/tests/**',
]
[tool.ruff]
extend-exclude = ['docs', 'versioneer.py', 'setup.py', '_version.py']
line-length = 88
target-version = 'py310'
[tool.ruff.format]
docstring-code-format = true
line-ending = 'lf'
quote-style = "single"
[tool.ruff.lint]
ignore = ['E402', 'F401', 'F811', 'E203', 'E501']
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']
'conftest.py' = ['D']
'due.py' = ['D']
'*/tests/*' = ['D']
'*/__init__.py' = ['F401', 'D']
'*/*/__init__.py' = ['F401', 'D']
'*/_version.py' = ['UP031', 'D']