-
Notifications
You must be signed in to change notification settings - Fork 82
/
pyproject.toml
31 lines (27 loc) · 1.01 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
[tool.ruff]
line-length = 120
src = ["backend", "deploy"]
target-version = "py39"
[tool.ruff.lint]
exclude = [ "tests/**", "**/input_types.py", "**/mutations.py", "**/queries.py", "**/types.py", "**/api/__init__.py"]
#select = ["D", "E", "F", "I", "PL", "RUF100", "W", "FA", "UP", "PYI036"]
ignore=[
"E501",
"F841",
"F403",
"F401",
"E712",
"E203",
"E741"
]
[tool.ruff.lint.pylint]
max-args = 25 # Maximum number of arguments for function / method.
max-bool-expr = 5 # Maximum number of boolean expressions in an if statement (see R0916).
max-branches = 15 # Maximum number of branch for function / method body.
max-locals = 30 # Maximum number of locals for function / method body.
max-public-methods = 20 # Maximum number of public methods for a class (see R0904).
max-returns = 6 # Maximum number of return / yield for function / method body.
max-statements = 50 # Maximum number of statements in function / method body.
[tool.ruff.format]
quote-style = "single"
docstring-code-format = true