-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.ruff.toml
55 lines (45 loc) · 1.24 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
# Exclude files/directories
exclude = [
".git",
".venv",
"__pycache__",
"build",
"dist",
".github",
".env",
".pytest_cache",
".mypy_cache",
".idea",
".vscode"
]
# Same as Black.
line-length = 88 #Why would someone prefer that? Well, with modern wide-screen monitors, some developers argue that longer lines are more readable and reduce unnecessary line breaks. Setting it to 999 is essentially like saying "don't enforce a line length limit."
indent-width = 4
# Assume Python 3.10
target-version = "py310"
[lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
ignore = []
extend-select = [
"UP", # pyupgrade (suggests modern syntax)
"SIM", # flake8-simplify (reduces redundant code)
]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["E", "W", "F", "I"]
unfixable = ["B"]
[format]
# Use double quotes for strings.
quote-style = "double"
# Indent with spaces
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"