From 6f0c7267842ea5dfc1ffc1d2484136cfd4848e1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Boisseau-Sierra?= <37387755+EBoisseauSierra@users.noreply.github.com> Date: Mon, 7 Oct 2024 22:28:35 +0200 Subject: [PATCH] ci: Check type hints (#3) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Étienne Boisseau-Sierra --- .pre-commit-config.yaml | 7 ++++++- setup.py | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0194ad9..bac647d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,8 +13,13 @@ repos: - id: mixed-line-ending - id: trailing-whitespace args: [--markdown-linebreak-ext=md] # allow markdown linebreak at EOL + - repo: https://github.com/pre-commit/mirrors-mypy + rev: v1.11.2 + hooks: + - id: mypy + exclude: ^gsbparse - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: "v0.6.9" + rev: v0.6.9 hooks: - id: ruff name: "Ruff linting" diff --git a/setup.py b/setup.py index b791e9b..b4d4bea 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ package_data={"static": ["VERSION"]}, install_requires=["defusedxml", "pandas"], extras_require={ - "dev": ["ruff", "pre-commit"], + "dev": ["mypy", "pre-commit", "ruff"], "test": ["pytest"], }, classifiers=[