-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
42 lines (33 loc) · 1.08 KB
/
ruff.toml
File metadata and controls
42 lines (33 loc) · 1.08 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
line-length = 79
exclude = ["migrations", "venv"]
[lint]
select = [
"N", # PEP8 Naming Conventions (naming)
"F", # Pyflakes (pyflakes)
"W", # Pycodestyle Warnings (pycodestyle_warnings)
"E", # Pycodestyle Errors (pycodestyle_errors)
"I", # Import Sorting (isort)
"Q", # Quote Consistency (flake8-quotes)
"TID", # Tidy Imports (flake8-tidy-imports)
"COM", # Commas (flake8-commas)
"C4", # Comprehensions (flake8-comprehensions)
"ERA", # Eradicate (dead code detection)
"RET", # Returns (flake8-return)
"PTH", # Pathlib (flake8-use-pathlib)
"ISC", # Implicit String Concatenation (flake8-implicit-str-concat)
"C90", # McCabe Complexity (mccabe)
"T20", # Print Statements (flake8-print)
"SIM" # Simplify (flake8-simplify)
]
[format]
quote-style = "single"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[lint.isort]
force-sort-within-sections = true
# known-first-party = your_apps
[lint.flake8-quotes]
inline-quotes = "single"
[lint.flake8-tidy-imports]
ban-relative-imports = "all"