Skip to content

Commit

Permalink
Merge pull request #714 from jonathanperret/fix-mypy-numpy
Browse files Browse the repository at this point in the history
Execute mypy pre-commit hook in main virtualenv to have access to dependencies
  • Loading branch information
jonathanperret authored Sep 30, 2024
2 parents 1adb7fb + 1263c05 commit 4dab861
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
10 changes: 6 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ repos:
hooks:
- id: flake8
additional_dependencies: [flake8-bugbear,flake8-sfs]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.9.0'
- repo: local
hooks:
- id: mypy
args: [--config-file=.pre-commit.mypy.ini]
additional_dependencies: [numpy]
name: check types with mypy
language: system
pass_filenames: false
entry: mypy src
files: ^src/.*.py$
6 changes: 0 additions & 6 deletions .pre-commit.mypy.ini

This file was deleted.

0 comments on commit 4dab861

Please sign in to comment.