forked from ddnet/ddnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
40 lines (35 loc) · 1.24 KB
/
Copy pathruff.toml
File metadata and controls
40 lines (35 loc) · 1.24 KB
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
include = [
"datasrc/**.py",
"scripts/**.py",
]
exclude = [
"datasrc/network.py", # TODO: makes formatting worse
"datasrc/seven/**.py", # don't touch, mostly copied from 0.7
]
indent-width = 8
line-length = 320
target-version = "py39"
[format]
indent-style = "tab"
preview = true # allow complex single line arguments to start on the same line, like `fn({`
[lint]
extend-select = [
# tidy-alphabetical-start
"A", # detect shadowed builtins
"B006", # mutable default arguments
"BLE", # disallow catch-all exceptions
# tidy-alphabetical-end
]
ignore = [
# tidy-alphabetical-start
"C401", # unnecessary-generator-set: `sorted(set(…))` can be a useful idiom to deduplicate an iterator
"E741", # ambiguous-variable-name: prohibits `l` as variable name
"PIE808", # unnecessary-range-start: it's fine to give the start of a range explicitly
"SIM102", # collapsible-if: separate if statements can be more readable
"SIM115", # open-file-with-context-handler: we don't care if we don't close files explicitly
"SIM117", # multiple-with-statements: doesn't seem more readable
"SIM905", # split-static-string: prohibits `"some words here".split()`
# tidy-alphabetical-end
]
[lint.isort]
from-first = true