]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
ci: configure lint step to run pre-commit
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 27 Dec 2024 01:55:16 +0000 (02:55 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 9 Jan 2025 13:43:57 +0000 (14:43 +0100)
.github/workflows/lint.yml

index dc15839ad5f0912bc35d441e70d113f8af12c779..ba3ae6eb33e837a104592fd765cd5053b97a3713 100644 (file)
@@ -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