Skip to content

Commit

Permalink
update to run mypy local
Browse files Browse the repository at this point in the history
  • Loading branch information
pacrob committed Feb 12, 2025
1 parent 8b0bfc1 commit c349be6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c349be6

Please sign in to comment.