lightly-train
lightly-train copied to clipboard
chore: add Ruff pre-commit checks
What has changed and why?
Added the existing Ruff checks to pre-commit so contributors can run the same Python checks locally with one command.
Updated make format-check to use pre-commit and refreshed CONTRIBUTING.md to point
to the new workflow.
How has it been tested?
pre-commit run --all-filesmake format-check- Manual hook proof with a temporary bad Python file:
ruff-format-checkfailed on bad formatting, passed after fixingruff-checkfailed on lint errors, passed after fixing
Did you update CHANGELOG.md?
- [ ] Yes
- [x] Not needed (internal change)
Did you update the documentation?
- [x] Yes
- [ ] Not needed (internal change without effects for user)