Skip to content

Commit 831ff0f

Browse files
authored
Add black to the _utils folder part 1 (#2515)
* Add black to _utils folder except module_testing * Add newsfragment * Fix typing
1 parent 69f49ee commit 831ff0f

31 files changed

+975
-811
lines changed

newsfragments/2515.misc.rst

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add black to ``web3/_utils``, excluding ``web3/_utils/module_testing``

tox.ini

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use_parentheses=True
2424
[flake8]
2525
max-line-length= 100
2626
exclude= venv*,.tox,docs,build
27-
ignore=W503
27+
ignore=E203,W503
2828

2929
[testenv]
3030
whitelist_externals=/usr/bin/make
@@ -65,6 +65,7 @@ extras=linter
6565
commands=
6666
flake8 {toxinidir}/web3 {toxinidir}/ens {toxinidir}/ethpm {toxinidir}/tests --exclude {toxinidir}/ethpm/ethpm-spec
6767
black {toxinidir}/ethpm {toxinidir}/web3/auto {toxinidir}/web3/utils --exclude {toxinidir}/ethpm/ethpm-spec --check
68+
black {toxinidir}/web3/_utils --exclude {toxinidir}/web3/_utils/module_testing --check
6869
isort --recursive --check-only --diff {toxinidir}/web3/ {toxinidir}/ens/ {toxinidir}/ethpm/ {toxinidir}/tests/
6970
mypy -p web3 -p ethpm -p ens --config-file {toxinidir}/mypy.ini
7071

0 commit comments

Comments
 (0)