Skip to content

Commit

Permalink
Update isort to 5.6.4 (#675)
Browse files Browse the repository at this point in the history
* Remove `-rc` option as it's no longer needed/supported
* Replace `known_standard_library` with `extra_standard_library`
* Colorize diff output
  • Loading branch information
ods committed Oct 27, 2020
1 parent 1d2e02e commit 067a207
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ setup:
pip install -Ue .

format:
isort -rc $(FORMATTED_AREAS) setup.py
isort $(FORMATTED_AREAS) setup.py
black $(FORMATTED_AREAS) setup.py

flake: lint
lint:
black --check $(FORMATTED_AREAS) setup.py
@if ! isort -c -rc $(FORMATTED_AREAS) setup.py; then \
@if ! isort -c $(FORMATTED_AREAS) setup.py; then \
echo "Import sort errors, run 'make format' to fix them!!!"; \
isort --diff -rc $(FORMATTED_AREAS) setup.py; \
isort --diff --color $(FORMATTED_AREAS) setup.py; \
false; \
fi
flake8 aiokafka tests setup.py
Expand Down
2 changes: 1 addition & 1 deletion requirements-ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
flake8==3.8.3
black==19.10b0
mypy==0.782
isort==4.3.21
isort[colors]==5.6.4
pytest==5.4.3
pytest-cov==2.10.0
pytest-asyncio==0.12.0
Expand Down
2 changes: 1 addition & 1 deletion requirements-win-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
flake8==3.8.3
black==19.10b0
mypy==0.782
isort==4.3.21
isort[colors]==5.6.4
pytest==5.4.3
pytest-cov==2.10.0
pytest-asyncio==0.12.0
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ multi_line_output=3
force_grid_wrap=0
combine_as_imports=True
lines_after_imports=2
known_standard_library=dataclasses
extra_standard_library=dataclasses
known_first_party=aiokafka,kafka
known_third_party=pytest

Expand Down

0 comments on commit 067a207

Please sign in to comment.