Skip to content

Commit

Permalink
Add black to the _utils folder part 1 (#2515)
Browse files Browse the repository at this point in the history
* Add black to _utils folder except module_testing

* Add newsfragment

* Fix typing
  • Loading branch information
kclowes authored Jun 16, 2022
1 parent 69f49ee commit 831ff0f
Show file tree
Hide file tree
Showing 31 changed files with 975 additions and 811 deletions.
1 change: 1 addition & 0 deletions newsfragments/2515.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add black to ``web3/_utils``, excluding ``web3/_utils/module_testing``
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use_parentheses=True
[flake8]
max-line-length= 100
exclude= venv*,.tox,docs,build
ignore=W503
ignore=E203,W503

[testenv]
whitelist_externals=/usr/bin/make
Expand Down Expand Up @@ -65,6 +65,7 @@ extras=linter
commands=
flake8 {toxinidir}/web3 {toxinidir}/ens {toxinidir}/ethpm {toxinidir}/tests --exclude {toxinidir}/ethpm/ethpm-spec
black {toxinidir}/ethpm {toxinidir}/web3/auto {toxinidir}/web3/utils --exclude {toxinidir}/ethpm/ethpm-spec --check
black {toxinidir}/web3/_utils --exclude {toxinidir}/web3/_utils/module_testing --check
isort --recursive --check-only --diff {toxinidir}/web3/ {toxinidir}/ens/ {toxinidir}/ethpm/ {toxinidir}/tests/
mypy -p web3 -p ethpm -p ens --config-file {toxinidir}/mypy.ini

Expand Down
Loading

0 comments on commit 831ff0f

Please sign in to comment.