commercetest / nlnet

Analysis of the opensource codebases of NLnet sponsored projects.
MIT License
0 stars 0 forks source link

CodeQuality: integrate ruff into the pre-commit checks #36

Closed julianharty closed 3 months ago

julianharty commented 3 months ago

Context

We've added pre-commit checks via #29 and #30, and I have been using ruff interactively. I'd like to have ruff run as part of the pre-commit checks.

The integration is documented and straight-forward.

https://docs.astral.sh/ruff/integrations/#pre-commit

And can be tested interactively :) before being committed into the git history:

pre-commit run --all-files (from https://pre-commit.com/)