-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.ruff.toml
69 lines (62 loc) · 1.87 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
line-length = 88
target-version = "py312"
src = ["tests", "cadurso"]
lint.select = [
"E", # pycodestyle errors
"B", # flake8-bugbear
"W", # pycodestyle warnings
"F", # pyflakes
"N", # PEP 8 naming conventions
"I", # isort
"UP", # pyupgrade
]
lint.ignore = [
"E402", # module level import not at top of file
"E501", # line length
"F403", # from module import * used; unable to detect undefined names
"F405", # name may be undefined, or defined from star imports: module
"B008", # do not perform function calls in argument defaults
"B905", # `zip()` without an explicit `strict=` parameter
"UP035", # deprecated-import Import from {target} instead:
"UP017", # Use alias
# "I001", # isort found an import in the wrong position
"N805", # First argument of a method should be named `self`
"N811", # Constant imported as non-constant
"N815", # mixedCase variable in class scope
]
lint.fixable = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"]
lint.unfixable = []
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
lint.dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[lint.mccabe]
max-complexity = 10
[lint.isort]
known-first-party = ["cadurso"]
[format]
preview = true # these are preview features such as string wrapping
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"