-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
49 lines (41 loc) 路 884 Bytes
/
Copy pathruff.toml
File metadata and controls
49 lines (41 loc) 路 884 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Ruff configuration
# https://docs.astral.sh/ruff/configuration/
# Exclude directories
exclude = [
".git",
".venv",
"venv",
"__pycache__",
"build",
"dist",
]
# Python version
target-version = "py313"
# Line length
line-length = 88
[lint]
# Enable rules
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"PIE", # flake8-pie
"RET", # flake8-return
]
# Ignore specific rules
ignore = [
"E501", # line too long (handled by formatter)
"W293", # blank line contains whitespace
]
[lint.per-file-ignores]
"__init__.py" = ["F401"] # imported but unused
[format]
# Enable auto-formatting
quote-style = "double"
indent-style = "space"