This repo contains pre-commit hooks that Jason uses for his personal projects. If you aren’t Jason and you also aren’t contributing to one of Jason’s projects, then this repo probably won’t be helpful to you.
If you want to know more about what the hooks in this repo do, then take
a look at VERSIONING.md
. Specifically, VERSIONING.md
will tell
you what you need to to in order to find the API docs for the scripts in
this repo.
-
You can use pre-commit to automatically check your contributions. Follow these instructions to get started. Skip the part about creating a pre-commit configuration.
-
This repo uses an EditorConfig file.
-
Try to keep lines shorter than seventy-three characters.
-
Use CommonMark for Markdown files.
-
If you’re using NixOS, then the ruff pre-commit hook probably won’t work. Here’s how you fix it:
- Set the
PIP_NO_BINARY
environment variable to “ruff”. - Run
pre-commit clean
- Run
pre-commit install-hooks
- Set the
See copying.md
.