lightly-train icon indicating copy to clipboard operation
lightly-train copied to clipboard

chore: add Ruff pre-commit checks

Open gabrielfruet opened this issue 6 months ago • 0 comments

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-files
  • make format-check
  • Manual hook proof with a temporary bad Python file:
    • ruff-format-check failed on bad formatting, passed after fixing
    • ruff-check failed 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)

gabrielfruet avatar May 13 '26 09:05 gabrielfruet