Skip to content

Commit

Permalink
Resort
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Jan 13, 2022
1 parent c1db34b commit ab99ec9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
24 changes: 12 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@ SRC = aiosignal tests setup.py

all: test

.install-deps:
.install-deps:
pip install -r requirements/dev.txt
@touch .install-deps

isort:
isort -rc $(SRC)
isort $(SRC)

flake: .flake

.flake: .install-deps $(shell find aiosignal -type f) \
$(shell find tests -type f)
$(shell find tests -type f)
flake8 aiosignal tests
python setup.py check -rms
@if ! isort -c -rc aiosignal tests; then \
echo "Import sort errors, run 'make isort' to fix them!"; \
isort --diff -rc aiosignal tests; \
false; \
@if ! isort -c aiosignal tests; then \
echo "Import sort errors, run 'make isort' to fix them!"; \
isort --diff aiosignal tests; \
false; \
fi
@if ! LC_ALL=C sort -c CONTRIBUTORS.txt; then \
echo "CONTRIBUTORS.txt sort error"; \
echo "CONTRIBUTORS.txt sort error"; \
fi
@touch .flake

Expand All @@ -34,10 +34,10 @@ mypy: .flake
mypy aiosignal

isort-check:
@if ! isort -rc --check-only $(SRC); then \
echo "Import sort errors, run 'make isort' to fix them!!!"; \
isort --diff -rc $(SRC); \
false; \
@if ! isort --check-only $(SRC); then \
echo "Import sort errors, run 'make isort' to fix them!!!"; \
isort --diff $(SRC); \
false; \
fi

check_changes:
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from setuptools import setup


if __name__ == "__main__":
setup()

0 comments on commit ab99ec9

Please sign in to comment.