-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
71 lines (64 loc) · 2.2 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
[tool.ruff]
target-version = "py312"
line-length = 100
[tool.ruff.lint]
select = [
# https://beta.ruff.rs/docs/rules/
"A", # flake8-builtins
"ANN", # flake8-annotations
"ARG", # flake8-unused-arguments
"B", # bugbear
"D", # pydocstyle
"E", # pycodestyle
# "ERA", # eradicate (removes commented out code) - wait for code changes to calm down
"F", # pyflakes
"FURB", # refurb - currently fully in preview
"I", # isort
"PL", # pylint
"RET", # flake8-return
"RUF100", # Remove unused noqas
"SIM", # flake8-simplify
"T20", # flake8-print (no print statements)
"TD", # flake8-todos
"TRY302", # tryceratops useless-try-except
"TRY401", # tryceratops verbose-log-message
"UP", # pyupgrade
]
ignore = [
"ANN002", # Missing type annotation for *{name} (args)
"ANN003", # Missing type annotation for **{name} (kwargs)
"ARG002", # unused-method-argument - false positives on overrides
"D104", # undocumented-public-package
"D203", # one-blank-line-before-class
"D212", # multi-line-summary-first-line
"PLR0904", # too-many-public-methods
"PLR0911", # too-many-return-statements
"PLR0912", # too-many-branches
"PLR0913", # too-many-arguments
"PLR0914", # too-many-variables
"PLR0915", # too-many-statements
"PLR0917", # too-many-positional
"PLR1702", # too-many-nested-blocks
"PLW0603", # global-statement
"TD003", # missing-todo-link
# slowly introducing those: % of warnings:
"D102", # undocumented-public-method (~38%)
"D101", # undocumented-public-class (~21%)
"D107", # undocumented-public-init (~16%)
"D105", # undocumented-magic-method (~12%)
"D100", # undocumented-public-module (~ 9%)
"D103", # undocumented-public-function (~ 3%)
"D106", # undocumented-public-nested-class (~.4%)
# do we want to add those?
"PLR6301", # no-self-use
"PLC2801", # unnecessary-dunder-call
]
unfixable = [
"ERA" # false positives
]
[tool.ruff.lint.flake8-builtins]
builtins-ignorelist = [
"format",
]
[tool.ruff.lint.isort]
combine-as-imports = true