From: Daniele Varrazzo Date: Thu, 30 Oct 2025 01:53:44 +0000 (+0000) Subject: chore: add cython-lint to pre-commit hooks X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1199%2Fhead;p=thirdparty%2Fpsycopg.git chore: add cython-lint to pre-commit hooks --- diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b0f07a05a..71fc7a7b1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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)$ diff --git a/psycopg/pyproject.toml b/psycopg/pyproject.toml index 8113ab44a..c0ce8d374 100644 --- a/psycopg/pyproject.toml +++ b/psycopg/pyproject.toml @@ -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",