diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5403b0f47..fd12096b9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -43,11 +43,14 @@ repos: - id: mdformat additional_dependencies: - mdformat-gfm -- repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.5.1 +- repo: local hooks: - - id: mypy - files: eth/ + - id: mypy-local + name: run mypy with all dev dependencies present + entry: python -m mypy -p eth + language: system + always_run: true + pass_filenames: false - repo: https://github.com/PrincetonUniversity/blocklint rev: v0.2.5 hooks: diff --git a/setup.py b/setup.py index 05d9461a1..905d3fe70 100644 --- a/setup.py +++ b/setup.py @@ -13,6 +13,7 @@ "build>=0.9.0", "bump_my_version>=0.19.0", "ipython", + "mypy==1.10.0", "pre-commit>=3.4.0", "tox>=4.0.0", "twine", diff --git a/tox.ini b/tox.ini index 3c02dc054..da1f76b78 100644 --- a/tox.ini +++ b/tox.ini @@ -65,6 +65,7 @@ allowlist_externals=make,pre-commit [testenv:py{38,39,310,311,312,313}-lint] deps=pre-commit +extras=dev commands= pre-commit install pre-commit run --all-files --show-diff-on-failure