-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathruff.toml
More file actions
50 lines (47 loc) · 1.08 KB
/
Copy pathruff.toml
File metadata and controls
50 lines (47 loc) · 1.08 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
41
42
43
44
45
46
47
48
49
50
line-length = 99
extend-exclude = [
"_version.py", # Auto-generated
"tests/data", # Submodules
]
[format]
quote-style = "single"
line-ending = "lf"
docstring-code-format = true
[lint]
extend-select = [
"F", # pyflakes
"E", # pycodestyle errors
"W", # pycodestyle warnings
"I", # isort
"D", # pydocstyle
"UP", # pyupgrade
"YTT", # flake8-2020
"S", # bandit
"BLE", # blind-except
"B", # bugbear
"A", # builtins
"C4", # comprehensions
"DTZ", # datetimez
"T10", # debugger
# "EM", # errmsg
"EXE", # executable
"ISC", # implicit-str-concat
"ICN", # import-conventions
"PT", # pytest-style
"Q", # quotes
]
ignore = [
"D105", # undocumented-magic-method
"D107", # undocumented __init__
"D203", # blank line before class docstring
"D213", # multi-line-summary-first-line
"Q000", # double quotes
"Q003", # avoidable-escaped-quote
"PYI041", # redundant-numeric-union (float | int is clearer in intent)
]
[lint.extend-per-file-ignores]
"setup.py" = ["D"]
"*/test_*.py" = [
"S101", # assert
"D",
]