forked from tiny-pilot/tinypilot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ruff.toml
46 lines (39 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
39
40
41
42
43
44
45
46
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",
]
# Assume Python 3.9
target-version = "py39"
[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"