Ruff
Ruff is a linter for Python.
ruff is composed of several linter commands.
ruff
is for formatting general python code.
You can enable the ruff
linter with:
ruff-nbqa
is for extra support for Jupyter notebooks.
You can enable the ruff-nbqa
linter with:
Auto Enabling
Ruff will be auto-enabled if any Python files are present.
Settings
Ruff supports the following config files:
ruff.toml
You can move these files to .trunk/configs
and trunk check
will still find them. See Moving Linter Configs for more info. Trunk check provides a default ruff.toml
if your project does not already have one.
Links
Ruff Trunk Check integration source
Trunk Check's open source plugins repo
Last updated