-
Notifications
You must be signed in to change notification settings - Fork 68
/
.ruff.toml
38 lines (31 loc) · 835 Bytes
/
.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
target-version = "py310"
[lint]
select = [
"E", # pycodestyle
"F", # pyflakes
"B", # flake8-bugbear
"I", # isort
"D", # pydocstyle
"UP", # pyupgrade
]
# Ignored rules
# - E501: line-too-long
# - I001: unsorted-imports
# - D205: blank-line-after-summary
# - D402: no-signature
# - D415: ends-in-punctuation
# - D417: undocumented-param
ignore = ["E501", "I001", "D205", "D402", "D415", "D417"]
# Avoid trying to fix flake8-bugbear (`B`) violations.
unfixable = ["B"]
# Ignore E402 (unused import)
[lint.per-file-ignores]
"patoolib/programs/*.py" = ["E402"]
[lint.isort]
known-first-party = ["patoolib"]
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
force-sort-within-sections = false
[lint.pydocstyle]
convention = "google"
[format]
quote-style = "preserve"