From: Daniele Varrazzo Date: Fri, 27 Dec 2024 01:55:16 +0000 (+0100) Subject: ci: configure lint step to run pre-commit X-Git-Tag: 3.2.4~7^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=987b80d2e4f6300cacf300933349c9bc7c2e6498;p=thirdparty%2Fpsycopg.git ci: configure lint step to run pre-commit --- diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index dc15839ad..ba3ae6eb3 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -27,21 +27,12 @@ jobs: - name: install packages to tests run: pip install ./psycopg[dev,test] - - name: Run black - run: black --check --diff . - - - name: Run flake8 - run: flake8 - - - name: Run mypy - run: mypy + - name: Lint codebase + run: pre-commit run -a --color=always - name: Check for sync/async inconsistencies run: ./tools/async_to_sync.py --check --all - - name: Check spelling - run: codespell - - name: Install requirements to generate docs run: sudo apt-get install -y libgeos-dev