Skip to content

Commit

Permalink
enforce type annotations in pre-commit and CI
Browse files Browse the repository at this point in the history
  • Loading branch information
berquist committed Jan 31, 2025
1 parent 0400cb4 commit 2c96bcf
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,17 @@ repos:
rev: "v0.9.4"
hooks:
- id: ruff
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.14.1"
hooks:
- id: mypy
additional_dependencies:
- blessings
- testtools
- types-Pygments
# Work around config file setting exclusion rules being bypassed when
# filenames are explicitly passed on the command line. See
# https://github.com/python/mypy/pull/12373#issuecomment-1071662559
# for the idea.
args: [.]
pass_filenames: false

0 comments on commit 2c96bcf

Please sign in to comment.