In theory, all the functionality of the following pre-commit hooks can be achieved by ruff:
- black
- pyupgrade
- isort
- interrogate
- nbQA
- bandit
We would advise removing these hooks and just using ruff instead. You should look through the ruff documentation and make sure you're using the appropriate configuration to get the desired behaviour.
You should configure ruff in the pyproject.toml, where you can also remove your configurations for the other tools.
Have a look at this template for inspiration. Note that the modern approach is to separately call ruff-check and ruff-format
In theory, all the functionality of the following pre-commit hooks can be achieved by ruff:
We would advise removing these hooks and just using ruff instead. You should look through the ruff documentation and make sure you're using the appropriate configuration to get the desired behaviour.
You should configure ruff in the pyproject.toml, where you can also remove your configurations for the other tools.
Have a look at this template for inspiration. Note that the modern approach is to separately call
ruff-checkandruff-format