This repo uses a pre-commit-format config
(.pre-commit-config.yaml) for basic hygiene checks - see that file
for the current list, rather than duplicating it here.
Run it with prek - a drop-in, single-binary reimplementation of pre-commit, no Python runtime needed to run the checks themselves:
brew install prek # or: pip install prek / pipx install prek prek install
That installs a git hook so the checks run automatically before each
commit. pre-commit itself also still works unmodified against the
same config file, if you'd rather use that.