# Install pre-commit
pre-commit install
# Run
pre-commit run --all-files # run all hooks on all files
pre-commit run <HOOK_ID> --all-files # run one hook on all files
pre-commit run --files <PATH_TO_FILE> # run all hooks on a file
pre-commit run <HOOK_ID> --files <PATH_TO_FILE> # run one hook on a file# Commit
git add .
git commit -m <MESSAGE>
# Commit without hooks
git commit -m <MESSAGE> --no-verify
# update pre-commit hook
pre-commit autoupdate