-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
34 lines (30 loc) · 1.11 KB
/
ruff.toml
File metadata and controls
34 lines (30 loc) · 1.11 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
# Ruff configuration for Runtm monorepo
# See pyproject.toml for full settings - this file provides IDE support
target-version = "py39"
line-length = 100
src = ["packages/*/"]
[lint]
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 = [
"E501", # line too long (handled by formatter)
"E402", # module import not at top (intentional for env loading)
"B008", # do not perform function calls in argument defaults
"B904", # raise without from inside except
"ARG001", # unused function argument
"ARG002", # unused method argument (needed for abstract methods)
"SIM102", # nested if statements (not always clearer combined)
"SIM105", # try-except-pass vs contextlib.suppress (style preference)
"SIM117", # nested with statements (style preference)
]
[lint.isort]
known-first-party = ["runtm_shared", "runtm_api", "runtm_worker", "runtm_cli"]