-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
53 lines (47 loc) · 1.5 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]
target-version = "py310"
line-length = 120
exclude = [".venv"]
indent-width = 4
[tool.ruff.lint]
# Rules list: https://docs.astral.sh/ruff/rules/
select = ["ALL"]
ignore = [
"ANN101", # The rule has been deprecated since ruff 0.2.0.
"ANN102", # The rule has been deprecated since ruff 0.2.0.
"ANN401", # typing.Any is allowed in special cases caused by external packages.
"RET504", # For easier debug and better code readability this rule is disabled.
"FIX002", # TODOs are allowed during developement process.
"TD002", # Link to issue should already assigne author.
"D401", # Imperative mood in function description is not required.
"UP032", # Doesnt work in some cases.
"PTH", # Pathlib is not required.
"TCH002", # Type hinting section in import sorting is not required.
"G004", # This is not production ready project, we can freely usese f-strings in loggers.
"BLE", # For this project siwtched off.
# Below rules has conflict with formatting and should be disabled.
# Docs with explantion: https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules.
"W191",
"E111",
"E114",
"E117",
"D206",
"D300",
"COM812",
"COM819",
"ISC001",
"ISC002",
"Q000",
"Q001",
"Q002",
"Q003",
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.ruff.lint.flake8-quotes]
inline-quotes = "double"
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.pycodestyle]
max-doc-length = 120