-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
30 lines (26 loc) · 733 Bytes
/
ruff.toml
File metadata and controls
30 lines (26 loc) · 733 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
# Ruff configuration for Python linting and formatting
# https://docs.astral.sh/ruff/
line-length = 100
target-version = "py312"
[lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"SIM", # flake8-simplify
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
"SIM108", # ternary operator (can reduce readability)
]
[lint.isort]
known-first-party = ["api-python", "workflow-python"]
[format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"