-
Notifications
You must be signed in to change notification settings - Fork 437
/
pyproject.toml
56 lines (46 loc) · 1.65 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
[build-system]
requires = ["setuptools", "wheel"]
[tool.wheel]
universal = 1
# Formater and linter settings
[tool.black]
line-length = 88
[tool.ruff]
line-length = 88
extend-include = ['*.ipynb']
[tool.ruff.lint]
select = [
'F', # pyflakes
'E', # pycodestyle: Error
'W', # pycodestyle: Warning
'I', # isort
'D', # pydocstyle
'UP', # pyupgrade
'TID', # flake8-tidy-imports
]
ignore = [
'E501', # line too long
'E741', # ambiguous variable names
'D105', # Missing docstring in magic method
'D212', # Multi-line docstring summary should start at the second line
'D200', # One-line docstring should fit on one line with quotes
'D401', # First line should be in imperative mood
'D404', # First word of the docstring should not be "This
'D413', # Missing blank line after last section
# pydocstyle ignores, which could be enabled in future when existing
# issues are fixed
'D100', # Missing docstring in public module
'D101', # Missing docstring in public class
'D102', # Missing docstring in public method
'D103', # Missing docstring in public function
'D107', # Missing docstring in __init__
'D202', # No blank lines allowed after function docstring
'D203', # 1 blank line required before class docstring
'D205', # 1 blank line required between summary line and description
'D400', # First line should end with a period
'D415', # First line should end with a period, question mark, or exclamation point
'D417', # Missing argument descriptions in the docstring
]
[tool.ruff.lint.flake8-tidy-imports]
# Disallow all relative imports.
ban-relative-imports = "all"