forked from mozilla/pontoon
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathruff.toml
More file actions
34 lines (28 loc) · 662 Bytes
/
ruff.toml
File metadata and controls
34 lines (28 loc) · 662 Bytes
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
line-length = 88
indent-width = 4
# Assume Python 3.11
target-version = "py311"
[lint]
ignore = [
"E501", # Line too long
]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"W", # pycodestyle warnings
]
[lint.isort]
combine-as-imports = true
lines-after-imports = 2
lines-between-types = 1
section-order = ["future", "standard-library", "third-party", "django", "first-party", "local-folder"]
[lint.isort.sections]
"django" = ["django"]
[format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "lf"
docstring-code-format = false
docstring-code-line-length = "dynamic"