From de114fa49a47b8d4baf0aa62c09af456463089bd Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Thu, 30 Oct 2025 01:53:44 +0000 Subject: [PATCH] chore: add cython-lint to pre-commit hooks --- .pre-commit-config.yaml | 6 ++++++ psycopg/pyproject.toml | 1 + 2 files changed, 7 insertions(+) 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", -- 2.47.3