23 lines
619 B
TOML
23 lines
619 B
TOML
# https://docs.astral.sh/ruff/settings/
|
|
line-length = 120
|
|
output-format = "concise"
|
|
exclude = ["*.pyi"]
|
|
|
|
[lint]
|
|
# Enable isort (I), Pyflakes (`F`) and pycodestyle (E, W)
|
|
select = ["I", "E", "F", "W"]
|
|
# E741: Ambiguous variable name
|
|
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
|
|
ignore = ["E111", "E114", "E117", "E741"]
|
|
|
|
[lint.per-file-ignores]
|
|
# Ignore `F401` (imported but unused) in all `__init__.py` files`.
|
|
"__init__.py" = ["F401", "F403"]
|
|
|
|
[lint.isort]
|
|
known-first-party = ["motrix_envs", "motrix_rl"]
|
|
|
|
[format]
|
|
# Enable reformatting of code snippets in docstrings.
|
|
docstring-code-format = true
|