diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 227b9ecf..d459ee91 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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$ \ No newline at end of file diff --git a/.pre-commit.mypy.ini b/.pre-commit.mypy.ini deleted file mode 100644 index e59c238d..00000000 --- a/.pre-commit.mypy.ini +++ /dev/null @@ -1,6 +0,0 @@ -[mypy] -plugins =numpy.typing.mypy_plugin -follow_imports=skip -ignore_missing_imports=True -strict=True -allow_subclassing_any=True \ No newline at end of file