From dd5bea1cfcc53d84c3d3fd32c8850b579bc26f09 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Tue, 9 Jan 2024 19:21:38 +0100 Subject: [PATCH] chore: pre-commit installation commands --- knowledge base/pipx.md | 1 + knowledge base/pre-commit.md | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/knowledge base/pipx.md b/knowledge base/pipx.md index a537a22..7e92727 100644 --- a/knowledge base/pipx.md +++ b/knowledge base/pipx.md @@ -18,6 +18,7 @@ For example, `pipx install 'pycowsay'` makes the `pycowsay` command available gl # Installation. python3 -m pip install --user 'pipx' brew install 'pipx' +zypper install 'python311-pipx' # Add pipx's binary folders to PATH. pipx ensurepath diff --git a/knowledge base/pre-commit.md b/knowledge base/pre-commit.md index c992496..83799b8 100644 --- a/knowledge base/pre-commit.md +++ b/knowledge base/pre-commit.md @@ -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