From: Daniele Varrazzo Date: Fri, 27 Dec 2024 02:34:00 +0000 (+0100) Subject: docs: document pre-commit usage X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F980%2Fhead;p=thirdparty%2Fpsycopg.git docs: document pre-commit usage --- diff --git a/README.rst b/README.rst index b29e83952..575e1731e 100644 --- a/README.rst +++ b/README.rst @@ -83,6 +83,15 @@ Now hack away! You can run the tests using:: export PSYCOPG_TEST_DSN="dbname=psycopg_test" pytest +The library includes some pre-commit hooks to check that the code is valid +according to the project coding convention. Please make sure to install them +by running:: + + pre-commit install + +This will allow to check lint errors before submitting merge requests, which +will save you time and frustrations. + Cross-compiling ---------------