-
Notifications
You must be signed in to change notification settings - Fork 8
/
ruff.toml
38 lines (33 loc) · 1.11 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
line-length = 79
target-version = "py310"
indent-width = 4
[lint]
select = [
"D409", # pydocstyle - section-underline-matches-section-length
"E", # pycodestyle error
"F", # Pyflakes
"I001", # isort - unsorted-imports
]
ignore = [
"E402", # module level import not at top of file
"E501", # line too long TODO FIXME
"E712", # Avoid equality comparisons to `True`
"E722", # do not use bare `except`
"E721", # use `is`/`is not` for type comparisons
"E741", # ambiguous variable name
"F401", # unused import
"F403", # unable to detect undefined names (star imports)
"F524", # `.format` missing argument(s) for placeholder(s)
"F811", # Redefinition of unused variable
"F821", # undefined name TODO FIXME
"F841", # local variable assigned but never used
]
[format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "lf"