diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 956feb31..31cee91d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,10 +7,11 @@ repos: rev: v1.3.0 hooks: - id: mypy - name: mypy with Python 3.8 + 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"] - args: ["--python-version=3.8"] + # 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.11 files: src/cabinetry diff --git a/pyproject.toml b/pyproject.toml index e8d937c5..7d7fa645 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,7 +31,8 @@ warn_unreachable = true warn_unused_ignores = true strict_equality = true no_implicit_optional = true -python_version = "3.8" +# numpy 1.25 is no longer compatible with Python 3.8, so use Python >=3.9 for type checking +python_version = "3.9" [[tool.mypy.overrides]] module = [