Skip to content

Commit 1280617

Browse files
committed
run mypy local
1 parent 6a927ac commit 1280617

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,14 @@ repos:
4343
- id: mdformat
4444
additional_dependencies:
4545
- mdformat-gfm
46-
- repo: https://github.com/pre-commit/mirrors-mypy
47-
rev: v1.5.1
46+
- repo: local
4847
hooks:
49-
- id: mypy
50-
exclude: tests/
48+
- id: mypy-local
49+
name: run mypy with all dev dependencies present
50+
entry: python -m mypy -p <MODULE_NAME>
51+
language: system
52+
always_run: true
53+
pass_filenames: false
5154
- repo: https://github.com/PrincetonUniversity/blocklint
5255
rev: v0.2.5
5356
hooks:

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2019-2024 The Ethereum Foundation
3+
Copyright (c) 2019-2025 The Ethereum Foundation
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"build>=0.9.0",
1010
"bump_my_version>=0.19.0",
1111
"ipython",
12+
"mypy==1.10.0",
1213
"pre-commit>=3.4.0",
1314
"tox>=4.0.0",
1415
"twine",

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ extras=
3333
docs
3434
allowlist_externals=make,pre-commit
3535

36-
[testenv:py{39,310,311,313}-lint]
36+
[testenv:py{39,310,311,312,313}-lint]
3737
deps=pre-commit
3838
commands=
3939
pre-commit install

0 commit comments

Comments
 (0)