This PR adds two new presets, one for running ruff check (a linter, runs project-wide to catch regressions) and one for running ruff format (just formatting, runs on specific modified files). Neither hook modifies files, even if ruff is configured to do so by default in the project. This can be changed if you'd like, but I generally dislike pre-commit hooks modifying files (aside from whitespace related stuff).
Something went wrong. Try again.
A small, fast, drop-in replacement for git-hooks.nix
Something went wrong. Try again.
Add Ruff presets #16
Merged
csw.im
targeting main from csw.im/nixhooks:presets/ruff/init
Merged opened by and assigned to
csw.im targeting main from csw.im/nixhooks:presets/ruff/init
Commits 1
feat(presets): ruff-fmt & ruff-lint