-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.ruff.toml
More file actions
109 lines (98 loc) · 3.03 KB
/
.ruff.toml
File metadata and controls
109 lines (98 loc) · 3.03 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
force-exclude = true
indent-width = 4
line-length = 100
respect-gitignore = true
target-version = "py312"
unsafe-fixes = true
[format]
docstring-code-format = true
docstring-code-line-length = "dynamic"
indent-style = "space"
line-ending = "lf"
quote-style = "single"
skip-magic-trailing-comma = false
[lint]
fixable = ["ALL"]
unfixable = []
select = [
"A", # flake8-builtins
"ANN", # flake8-annotations
"ARG", # flake8-unused-arguments
"ASYNC", # flake8-async
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"DTZ", # flake8-datetimez
"E", # pycodestyle - error
"F", # pyflakes
"FA", # flake8-future-annotations
"FBT", # flake8-boolean-trap
"FLY", # flynt
"FURB", # refurb
"I", # isort
"ICN", # flake8-import-conventions
"LOG", # flake8-logging
"N", # pep8-naming
"NPY", # numpy-specific rules
"PD", # pandas-vet
"PERF", # perflint
"PIE", # flake8-pie
"PLC", # pylint - convention
"PLE", # pylint - error
"PLR", # pylint - refactor
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"Q", # flake8-quotes
"RET", # flake8-return
"RSE", # flake8-raise
"RUF", # ruff-specific rules
"S", # flake8-bandit
"SIM", # flake8-simplify
"SLOT", # flake8-slots
"T10", # flake8-debugger
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"W", # warning
"YTT", # flake8-2020
]
ignore = [
"ANN401", # any-type
"ANN101", # missing-type-self
"ANN102", # missing-type-cls
"PLR2004", # magic-value-comparison
"S108", # hardcoded-temp-file
"S602", # subprocess-popen-with-shell-equals-true
"S603", # subprocess-without-shell-equals-true
"S604", # call-with-shell-equals-true
"S605", # start-process-with-a-shell
"S606", # start-process-with-no-shell
"S607", # start-process-with-partial-path
"S701", # jinja2-autoescape-false
"N817", # camelcase-imported-as-acronym
"N818", # error-suffix-on-exception-name
]
[lint.isort]
known-first-party = ["app", "core", "db", "lib", "models", "src"]
[lint.per-file-ignores]
"__init__.py" = ["D103", "D104", "F401"]
"*test*.py" = ["D103", "D104", "Q000", "S101"]
"**/compat*.py" = ["UP"]
"**/codemod*/*.py" = ["ARG002", "N802"]
[lint.flake8-unused-arguments]
ignore-variadic-names = true
[lint.flake8-annotations]
allow-star-arg-any = true
[lint.flake8-quotes]
inline-quotes = "single"
[lint.pydocstyle]
convention = "numpy"
[lint.pylint]
allow-magic-value-types = ["int"]
max-args = 10
max-bool-expr = 10
max-branches = 20
max-locals = 15
max-nested-blocks = 10
max-positional-args = 10
max-returns = 10
max-statements = 75