-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
29 lines (27 loc) · 876 Bytes
/
pyproject.toml
File metadata and controls
29 lines (27 loc) · 876 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
[tool.ruff]
target-version = "py311"
line-length = 120
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"S", # flake8-bandit (security)
"SIM", # flake8-simplify
"RUF", # ruff-specific rules
]
ignore = [
"S101", # allow assert in tests
"B008", # allow function calls in default args (Pydantic Field)
"RUF001", # allow ambiguous unicode in strings
"RUF002", # allow ambiguous unicode in docstrings (en-dashes)
"RUF003", # allow ambiguous unicode in comments
"UP042", # allow StrEnum pattern
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["S101", "S106", "S104"]
"scripts/**/*.py" = ["S602", "S311"] # allow subprocess/random in scripts