Skip to content

Commit 15a42a2

Browse files
committed
Makefile: add target to sort imports using isort
1 parent 46e0485 commit 15a42a2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ clean: FORCE
6565
rm -Rf .coverage
6666
rm -f diff-cover.html
6767

68+
# Linting and code style related targets
69+
## sorting imports using isort: https://github.com/timothycrosley/isort
70+
sort_imports:
71+
pip install isort
72+
isort ${MODULE}/*.py tests/*.py setup.py
73+
6874
## pep8 : check Python code style
6975
pep8: $(PYSOURCES)
7076
pep8 --exclude=_version.py --show-source --show-pep8 $^ || true

0 commit comments

Comments
 (0)