-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.ruff.toml
55 lines (45 loc) · 1.53 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
src = ["app"]
select = [
"D", # Enable pydocstyle rules.
"F", # Enable pyflakes rules.
"I", # Enable isort rules.
"Q", # Enable flake8-quotes rules.
]
ignore = [
# Disable rules that require everything to have a docstring.
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D106", # Missing docstring in public nested class
"D107", # Missing docstring in __init__
# We sometimes do our own indenting that contradicts pydocstyle expectations.
"D214", # Section is over-indented
]
exclude = [
".git",
"third_party",
".venv",
]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"]
unfixable = []
# Assume Python 3.9
target-version = "py39"
[format]
quote-style = "single"
# line-length = 88
[flake8-quotes]
# Use consistent quotes regardless of whether it allows us to minimize escape
# sequences.
avoid-escape = false
docstring-quotes = "double"
inline-quotes = "single"
multiline-quotes = "double"
[isort]
force-single-line = true
force-to-top = ["log"]
[pydocstyle]
convention = "google"