]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
chore: add cython-lint to pre-commit hooks 1199/head
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 30 Oct 2025 01:53:44 +0000 (01:53 +0000)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 30 Oct 2025 10:38:44 +0000 (10:38 +0000)
.pre-commit-config.yaml
psycopg/pyproject.toml

index b0f07a05ab82ac4410c267267aeedad499f0e746..71fc7a7b1d80a41cb616e8fefd41a31652520bc9 100644 (file)
@@ -41,3 +41,9 @@ repos:
         entry: mypy --pretty --follow-imports=silent
         files: \.py[i]?$
         exclude: tests/test_tstring.py
+
+      - id: cython-lint
+        name: cython-lint
+        language: system
+        entry: cython-lint
+        files: \.(pxd|pyx)$
index 8113ab44a1494fda8b48149158f11272fc7df9d2..c0ce8d374cc43f91c5b0494e5ba6742f6dc409d0 100644 (file)
@@ -80,6 +80,7 @@ dev = [
     "ast-comments >= 1.1.2",
     "black >= 24.1.0",
     "codespell >= 2.2",
+    "cython-lint >= 0.16",
     "dnspython >= 2.1",
     "flake8 >= 4.0",
     "isort[colors] >= 6.0",