Skip to content

Commit

Permalink
Added isort to setup, makefile and tox (#2101)
Browse files Browse the repository at this point in the history
  • Loading branch information
prathmeshranaut authored Apr 25, 2023
1 parent bb7ffbf commit 1ce3072
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ clean-pyc:
find . -name '__pycache__' -exec rm -rf {} +

lint:
tox -e lint
tox run -e lint

lint-roll:
isort eth tests
$(MAKE) lint

test:
py.test --tb native tests
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"pydocstyle>=6.0.0",
"types-setuptools",
"importlib-metadata<5.0;python_version<'3.8'",
"isort==5.11.4"
],
'benchmark': [
"termcolor>=1.1.0,<2.0.0",
Expand Down
16 changes: 16 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,22 @@ envlist=
py{37,38,39}-lint
py39-docs

[isort]
profile=black
force_grid_wrap=1
multi_line_output=3
honor_noqa=true
float_to_top=true
combine_as_imports=true
force_sort_within_sections=true
include_trailing_comma=true
extra_standard_library=pytest
known_first_party=eth
line_length=88
use_parentheses=true
# skip `__init__.py` files because sometimes order of initialization is important
skip=__init__.py

[flake8]
max-line-length= 100
exclude=
Expand Down

0 comments on commit 1ce3072

Please sign in to comment.