forked from cheran-senthil/TLE
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
33 lines (28 loc) · 824 Bytes
/
Copy pathruff.toml
File metadata and controls
33 lines (28 loc) · 824 Bytes
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
target-version = "py311"
line-length = 88
indent-width = 4
extend-exclude = [
".cache",
".venv",
"data",
]
[lint]
select = ["E", "F", "W", "I", "B"]
ignore = [
"B904", # Within an except clause, raise exceptions with raise ... from err
]
[lint.per-file-ignores]
"tle/util/db/__init__.py" = ["F403"] # Star imports
"tle/util/ranklist/__init__.py" = ["F403"] # Star imports
"tle/cogs/handles.py" = ["E402"] # GTK requires version setting before import
"tle/cogs/logging.py" = ["E722"] # Intentional bare except in error handler
"tle/util/events.py" = ["E722"] # Intentional bare except in event error handler
[format]
line-ending = "lf"
quote-style = "single"
indent-style = "space"
skip-magic-trailing-comma = false
[lint.isort]
case-sensitive = true
combine-as-imports = true
order-by-type = true