Open josibake opened 4 weeks ago
echo '#!/bin/sh
uvx ruff format . --check
uvx ruff check .' > .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
Very much like doom guy emoji, did not know he was here :)
Shall we close this? you can just add the precommit hook yourself. Unless you are talking about this pre-commit?
Can close, I added your script locally. I do, however, think we should mention this (maybe we do?) in a contributing document and provided a sample script for users to install. It's pretty annoying when a new contributor opens a PR , and the first thing we gotta do is say "hey can you run ruff format?"
if I have a CI failure for ruff formatting one more time........ :rage4: