From fe755a7e7e86b561c5ceadaaec87dd29247903ea Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Tue, 28 Jan 2025 14:54:00 +0100 Subject: [PATCH] docs: document why pre-commit language is set to 'local' --- .pre-commit-config.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 329b09d4f..082386b67 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,12 @@ # See https://pre-commit.com for more information +# +# Note: we use `language: system` to make sure that pre-commit uses the same +# dependencies installed by `pip install psycopg[dev]` and not some random +# version installed in a hidden virtualenv. This way running the tools via +# pre-commit should give the same result of running them manually. +# +# Please check README.rst about setting up a development env. + repos: - repo: local hooks: -- 2.47.2