forked from jaraco/skeleton
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruff.toml
64 lines (60 loc) · 1.59 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
exclude = ['*', '.*'] # DISABLE
line-length = 99
[lint]
extend-select = [
"F", # pyflakes
"E", # pycodestyle errors
"W", # pycodestyle warnings
"I", # isort (import sorting)
# "N", # pep8-naming
# "D", # pydocstyle
"UP", # pyupgrade (drop old / upgrade to new language idioms)
"YTT", # flake8-2020 (misuse of sys.version)
# "ANN", # flake8annotations
"S", # bandit (security rules)
"BLE", # blind-except
"B", # bugbear (likely bug identifier)
"A", # builtin shadowing
# "CPY", # copyright (check for copyright notice on all files)
"C4", # comprehensions
"DTZ", # datetimez
"T10", # debugger (detect traces)
# "EM", # errmsg (conventions for improving tracebacks)
"EXE", # executable (shebang/exec-bit issues)
"FA", # future-annotations
"ISC", # implicit-str-concat
"ICN", # import-conventions
"G", # logging-format
"PT", # pytest-style
"Q", # quotes (consistent quotes style)
"NPY", # Numpy-specific rules
"RUF", # Ruff-specific rules
]
extend-ignore = [
"S311", # We are not using random for cryptographic purposes
"S603", # Too noisy, rarely anything to do
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"W191",
"E111",
"E114",
"E117",
"D206",
"D300",
"Q000",
"Q001",
"Q002",
"Q003",
"COM812",
"COM819",
"ISC001",
"ISC002",
]
[lint.flake8-quotes]
inline-quotes = "single"
[lint.extend-per-file-ignores]
"*/test_*.py" = ["S101"]
"docs/conf.py" = ["A001"]
"docs/sphinxext/github_link.py" = ["BLE001"]
[format]
quote-style = "single"
docstring-code-format = true