Skip to content

Commit 5a1496b

Browse files
committed
Update mypy file exclusion to use regex search
- Due to similar issues as was happening in #2727, ``mypy`` looks for regular expressions which led to issues running ``make lint`` locally.
1 parent cc5a9da commit 5a1496b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

newsfragments/2734.internal.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Use regex pattern for ``mypy`` command for ``tox`` / ``make lint`` linting commands.

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ commands=
6666
flake8 {toxinidir}/web3 {toxinidir}/ens {toxinidir}/ethpm {toxinidir}/tests --exclude {toxinidir}/ethpm/ethpm-spec,{toxinidir}/**/*_pb2.py
6767
black {toxinidir}/ens {toxinidir}/ethpm {toxinidir}/web3 {toxinidir}/tests {toxinidir}/setup.py --exclude /ethpm/ethpm-spec/|/ethpm/_utils/protobuf/ipfs_file_pb2\.py --check
6868
isort --recursive --skip {toxinidir}/ethpm/_utils/protobuf/ipfs_file_pb2.py --skip {toxinidir}/ethpm/ethpm-spec --check-only --diff {toxinidir}/web3/ {toxinidir}/ens/ {toxinidir}/ethpm/ {toxinidir}/tests/
69-
mypy -p web3 -p ethpm -p ens --exclude {toxinidir}/ethpm/_utils/protobuf/ipfs_file_pb2.py --config-file {toxinidir}/mypy.ini
69+
mypy -p web3 -p ethpm -p ens --exclude ethpm/_utils/protobuf/ipfs_file_pb2\.py --config-file {toxinidir}/mypy.ini
7070

7171
[testenv:benchmark]
7272
basepython=python

0 commit comments

Comments
 (0)