-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruff.toml
74 lines (68 loc) · 1.89 KB
/
ruff.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
72
73
74
line-length = 97
[lint]
select = [
"A", # flake8-builtins
"ANN", # flake8-annotations
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"COM", # flake8-commas
"D", # pydocstyle
"D400", # pydocstyle: ends-in-period
"D401", # pydocstyle: non-imperative-mood
"E", # pycodestyle: errors
"F", # Pyflakes
"FLY", # flynt
"FURB", # refurb
"G", # flake8-logging-format
"I", # isort
"ISC", # flake8-implicit-str-concat
"N", # pep8-naming
"PERF", # Perflint
"PIE", # flake8-pie
"PL", # Pylint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"Q", # flake8-quotes
"RET", # flake8-return
"RSE", # flake8-raise
"RUF", # Ruff-specific rules
"SIM", # flake8-simplify
"T20", # flake8-print
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"W", # pycodestyle: warnings
]
ignore = [
"ANN101", # flake8-annotations: missing-type-self (deprecated)
"ANN102", # flake8-annotations: missing-type-cls (deprecated)
"ANN401", # flake8-annotations: any-type
"B008", # flake8-bugbear: function-call-in-default-argument
"COM812", # flake8-commas: missing-trailing-comma
"E741", # pycodestyle: ambiguous-variable-name
"PLR09", # Pylint: too-many-*
"PLR1702", # Pylint: too-many-nested-blocks
"SIM105", # flake8-simplify: suppressible-exception
]
preview = true
[lint.per-file-ignores]
"__init__.py" = ["F401"]
"tests/*.py" = [
"D100",
"D101",
"D102",
"D103",
"D104",
"S101",
"ANN001",
"PLR2004",
"N806",
"T201",
]
[lint.pydocstyle]
convention = "google"
# # Never enforce `E501` (line length violations).
# # ignore = ["E501"]
# ignore = ["ANN101", "ANN102", "D203", "D213"]
# # Avoid trying to fix flake8-bugbear (`B`) violations.
# unfixable = ["B"]