| allowed-tools | description |
|---|---|
Bash(ruff check:*), Bash(ruff format:*), Read(~/.config/ruff/ruff.toml) |
Lint and format codebase using Ruff |
Your goal is to lint and format the codebase using Ruff.
Do the following:
- Run
ruff formatto format the codebase. - Run
ruff check --fixto lint the codebase and fix any fixable issues. - Take a look at the output and note any issues that ruff couldn't fix.
- refer to
~/.config/ruff/ruff.tomland reading the violations. - Try to fix issues that doesn't change the core logic of the code.Ignore fixes that require restructing the code in a major way.
- Report all unfixed issues and exit.