-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
49 lines (46 loc) · 1.46 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
[tool.black]
line-length = 101
[tool.isort]
profile = "black"
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
[tool.ruff]
select = [
"E", # pycodestyle (Error)
"W", # pycodestyle (Warning)
"F", # Pyflakes
"PL", # Pylint
"ANN", # flake8-annotations
"B", # flake8-bugbear
"ERA", # eradicate
"I", # isort
"ARG", # flake8-unused-arguments
"N", # pep8-naming,
"S", # flake8-bandit
"T20", # flake8-print
"Q", # flake8-quotes
]
line-length = 119
ignore = [
"ANN002", # Missing type annotation for `*args`
"ANN003", # Missing type annotation for `**kwargs`
"ANN101", # Missing type annotation for `self` in method
"ANN102", # Missing type annotation for `cls` in classmethod
"ANN204", # Missing return type annotation for special method
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
"B008", # Do not perform function call in argument defaults
"B904", # Within an except clause, raise exceptions with `raise ... from err` or `raise ... from None`
"N818", # Exception name should be named with an Error suffix,
"PLR0911", # Too many return statements
"PLR0912", # Too many branches
"PLR0913", # Too many arguments to function call
"PLR0915", # Too many statements
"ERA001", # Found commented-out code
]
exclude = [
"__pycache__",
".git",
"test*.py",
]
target-version = "py310"
[tool.ruff.flake8-quotes]
inline-quotes = "double"