-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ruff.toml
72 lines (66 loc) · 1.46 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
line-length = 120
[lint]
select = [
"B", # flake8-bugbear
"E", # pycodestyle
"W",
"F", # Pyflakes
"SIM", # flake8-simplify
"UP", # pyupgrade
"W292", # newline at end of file
"N", # PEP8 naming
"D", # pydocstyle
"ANN", # annotation
"BLE", # blind-except
"A", # flake8-builtins
"ICN", # import-convention
"T20", # print statement
"G", # logging format
"Q", # flake8-quotes
"RET", # flake8-return
"SIM", # flake8-simplify
"ARG", # flake8-unused-arguments
"FIX", # flake8-fixme
"ERA", # flake8-eradicate
"PERF", # perflint
"E501", # line to long
"COM818", # trailing comma on bare tuple
"COM819", # trailing comma prohibited
"I",
]
ignore = [
"ANN101",
"ANN102",
"BLE001",
"FIX002",
"D100",
"D401",
"D417",
"D104",
"D203",
"D213",
"D401",
"FIX001",
"ANN401",
"PERF203",
]
exclude = ["scripts/python/original_controller.py"]
# Ignore unused imports in __init__.py files (would need __all__ otherwise)
[lint.per-file-ignores]
"__init__.py" = ["F401", "I"]
[format]
quote-style = "double"
docstring-code-line-length = 80
skip-magic-trailing-comma = true
[lint.isort]
default-section = "third-party"
known-first-party = ["src"]
section-order = [
"future",
"third-party",
"first-party",
"local-folder"
]
lines-after-imports = 2
lines-between-types = 1
split-on-trailing-comma = false