From d410d35dba002cb3cbd728811473e5002d4fafc1 Mon Sep 17 00:00:00 2001 From: Alexander Held <45009355+alexander-held@users.noreply.github.com> Date: Tue, 1 Oct 2024 19:26:58 +0200 Subject: [PATCH] ci: drop mypy checks with Python 3.9 (#489) * drop mypy in Python 3.9 mode from pre-commit * keep mypy in Python 3.12 mode * updated pre-commit --- .pre-commit-config.yaml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 59d767ef..720710b5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,14 +4,8 @@ repos: hooks: - id: black - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.11.1 + rev: v1.11.2 hooks: - - id: mypy - name: mypy with Python 3.9 - files: src/cabinetry - additional_dependencies: ["numpy>=1.22", "boost-histogram>=1.0.1", "click>=8", "types-tabulate", "types-PyYAML", "hist>=2.3.0"] - # numpy 1.25 is no longer compatible with Python 3.8, so use Python >=3.9 for type checking - args: ["--python-version=3.9"] - id: mypy name: mypy with Python 3.12 files: src/cabinetry