-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
53 lines (46 loc) · 2.41 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
[tool.ruff]
exclude = [".venv"]
extend-include = ["*.ipynb"]
line-length = 120
src = ["src"]
target-version = "py312"
[tool.ruff.format]
docstring-code-format = true
skip-magic-trailing-comma = false
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402"]
"**/{tests,docs,tools}/*" = ["E402"]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
#### Modules
"INP", # flake8-no-pep420
"EXE", # flake8-executable
"ERA", # eradicate
"COM", # flake8-commas
"C90", # mccabe
"ANN", # flake8-annotations
#### Rules
"D100", # undocumented-public-module : Missing docstring in public module
"D101", # undocumented-public-class : Missing docstring in public class
"D102", # undocumented-public-method : Missing docstring in public method
"D103", # undocumented-public-function : Missing docstring in public function
"D104", # undocumented-public-package : Missing docstring in public package
"D105", # undocumented-magic-method : Missing docstring in magic method
"D106", # undocumented-public-nested-class : Missing docstring in public nested class
"D107", # undocumented-public-init : Missing docstring in __init__
"D203", # one-blank-line-before-class : Checks for docstrings on class definitions that are not preceded by a blank line
"D212", # multi-line-summary-first-line : Multi-line docstring summary should start at the first line
"E402", # module-import-not-at-top-of-file : Module level import not at top of cell
"ISC001", # single-line-implicit-string-concatenation : Implicit string concatenation
"PYI024", # collections-named-tuple : Checks for uses of collections.namedtuple in stub files.
"S603", # subprocess-without-shell-equals-true : Check for method calls that initiate a subprocess without a shell
"T201", # print statement : Checks for print statements
]
unfixable = [
#### Modules
"B", # flake8-bugbear
#### Rules
"F401", # unused-import : Checks for unused imports.
"F841", # unused-variable : Local variable {name} is assigned to but never used
]