-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruff.toml
79 lines (71 loc) · 1.71 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
75
76
77
78
79
# Exclude a variety of commonly ignored directories.
exclude = [
".eggs",
".git",
".git-rewrite",
".ruff_cache",
".venv",
"_build",
"build",
"dist",
"venv",
"tests/static",
]
line-length = 100 # Used by both linter and E501
indent-width = 4
output-format = "grouped"
target-version = "py313"
[lint]
select = [
"A", # flake8-builtins
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"COM", # flake8-commas
"C90", # mccabe (max-complexity)
# "D", # pydocstyle
"E", # pycodestyle errors
"ERA", # eradicate
"F", # pyflakes
"FLY", # flynt
"I", # isort
"INP", # flake8-no-pep420
"ISC", # flake8-implicit-str-concat
"N", # pep8-naming
"PERF", # Perflint
"PIE", # flake8-pie
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"SIM", # flake8-simplify
"UP", # pyupgrade
"W", # pycodestyle warnings
]
ignore = [
]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
[lint.mccabe]
max-complexity = 10
[lint.extend-per-file-ignores]
"tests/*" = [
"D", # pydocstyle
"E501", # line too long
"INP001", # implicit-namespace-package
"N", # pep8-naming
"PERF", # Perflint
"PIE794", # duplicate-class-field-definition
"PT011", # pytest-raises-too-broad
]
"**/__init__.py" = [
"F401", # unused-import
"F403", # undefined-local-with-import-star
]
[lint.pydocstyle]
convention = "google"
[format]
quote-style = "single"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"