Skip to content

Commit

Permalink
ci: drop mypy checks with Python 3.9 (#489)
Browse files Browse the repository at this point in the history
* drop mypy in Python 3.9 mode from pre-commit
* keep mypy in Python 3.12 mode
* updated pre-commit
  • Loading branch information
alexander-held authored Oct 1, 2024
1 parent 3a9c0fa commit d410d35
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d410d35

Please sign in to comment.