-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
36 lines (31 loc) · 757 Bytes
/
Copy pathpyproject.toml
File metadata and controls
36 lines (31 loc) · 757 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
[project]
requires-python = ">=3.9"
[tool.ruff]
line-length = 120
cache-dir = "~/.cache/ruff"
src = ["src"]
extend-include = ["*.ipynb"]
[tool.ruff.lint]
ignore = [
"B028", # warning without explicit stacklevel
"C408", # dict() calls (stylistic)
"C901", # function complexity
"E501",
"E731",
"I001",
"F401",
]
extend-select = ["E", "F", "I", "W", "UP", "B", "T", "C"]
[tool.ruff.lint.per-file-ignores]
# Allow prints in auxiliary scripts
"benchmark/*.py" = ["T201"]
"examples/*.py" = ["T201"]
"scripts/*.py" = ["T201"]
"*.ipynb" = ["T201"]
"utils/*.py" = ["T201"]
"**/envs/*.py" = ["T201"]
[tool.ruff.lint.isort]
lines-after-imports = 2
known-first-party = ["src", "trl"]
[tool.ruff.format]
skip-magic-trailing-comma = true