chore: pre-commit installation commands

This commit is contained in:
Michele Cereda
2024-01-09 19:21:38 +01:00
parent 82f613e803
commit dd5bea1cfc
2 changed files with 6 additions and 1 deletions

View File

@@ -11,8 +11,12 @@
## TL;DR
```sh
# Install.
pip install --user 'pre-commit' # has currently issues with `pipx`
brew install 'pre-commit'
# Generate a very basic configuration.
pre-commit sample-config > .pre-commit-config.yaml
pre-commit sample-config > '.pre-commit-config.yaml'
# Manually run checks.
pre-commit run --all-files