diff --git a/README.md b/README.md index 910b031..b1c7e2a 100644 --- a/README.md +++ b/README.md @@ -31,11 +31,23 @@ uv pip install -e ".[dev]" This creates the virtual environment in the `.venv` directory. To activate the environment in your shell, you need to `source` the correct activation script from `.venv/bin`, e.g. `.venv/bin/activate` for bash. +### Install `pre-commit` + +To check and format the code automatically, you can use `pre-commit`. +In general, you can use the latest version. + +```bash +pipx install pre-commit +pre-commit install +``` + +Now, the checks will be run automatically before each commit. +The first time you might have some delay because the hooks are installed. + ### Install `nox` To run the tests the same way as in the CI, you can use `nox`. In general, you can use the latest version. -It's suggested to install it with `pipx` but any other way is fine too. ```bash pipx install nox