mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
chore: pre-commit installation commands
This commit is contained in:
@@ -18,6 +18,7 @@ For example, `pipx install 'pycowsay'` makes the `pycowsay` command available gl
|
|||||||
# Installation.
|
# Installation.
|
||||||
python3 -m pip install --user 'pipx'
|
python3 -m pip install --user 'pipx'
|
||||||
brew install 'pipx'
|
brew install 'pipx'
|
||||||
|
zypper install 'python311-pipx'
|
||||||
|
|
||||||
# Add pipx's binary folders to PATH.
|
# Add pipx's binary folders to PATH.
|
||||||
pipx ensurepath
|
pipx ensurepath
|
||||||
|
|||||||
@@ -11,8 +11,12 @@
|
|||||||
## TL;DR
|
## TL;DR
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
# Install.
|
||||||
|
pip install --user 'pre-commit' # has currently issues with `pipx`
|
||||||
|
brew install 'pre-commit'
|
||||||
|
|
||||||
# Generate a very basic configuration.
|
# Generate a very basic configuration.
|
||||||
pre-commit sample-config > .pre-commit-config.yaml
|
pre-commit sample-config > '.pre-commit-config.yaml'
|
||||||
|
|
||||||
# Manually run checks.
|
# Manually run checks.
|
||||||
pre-commit run --all-files
|
pre-commit run --all-files
|
||||||
|
|||||||
Reference in New Issue
Block a user