-
-
Notifications
You must be signed in to change notification settings - Fork 289
Expand file tree
/
Copy path.ruff.toml
More file actions
48 lines (41 loc) · 1.17 KB
/
.ruff.toml
File metadata and controls
48 lines (41 loc) · 1.17 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
src = ["app"]
# Assume Python 3.9.
target-version = "py39"
[lint]
select = [
"D", # Enable pydocstyle rules.
"F", # Enable pyflakes rules.
"I", # Enable isort rules.
"Q", # Enable flake8-quotes rules.
"S", # Enable flake8-bandit 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",
]
[lint.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"
[lint.isort]
force-single-line = true
force-to-top = ["log"]
[lint.pydocstyle]
convention = "google"