-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
63 lines (52 loc) · 1.21 KB
/
Copy pathruff.toml
File metadata and controls
63 lines (52 loc) · 1.21 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Ruff configuration
# https://docs.astral.sh/ruff/configuration/
# Target Python version
target-version = "py311"
# Line length
line-length = 88
# Exclude directories
exclude = [
".git",
".venv",
"venv",
"__pycache__",
".pytest_cache",
".ruff_cache",
"build",
"dist",
"*.egg-info",
]
[lint]
# Enable rules
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
]
# Ignore specific rules
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
"B904", # raise without from inside except
]
# Allow autofix for all enabled rules
fixable = ["ALL"]
unfixable = []
[lint.per-file-ignores]
# Tests can use assertions and have unused arguments
"tests/**/*.py" = ["ARG", "S101"]
[lint.isort]
known-first-party = ["blackbox"]
[format]
# Use double quotes for strings
quote-style = "double"
# Indent with spaces
indent-style = "space"
# Unix-style line endings
line-ending = "lf"