Skip to content

Commit

Permalink
Makefile: Add "autoformat" rule to format all the code
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Viktorin committed Mar 14, 2018
1 parent b0f3642 commit db24276
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,13 @@ valgrind: build $(PYTHON_SUPP)
fi

# Code autoformatter
.PHONY: indent
.PHONY: autoformat indent autopep8
autoformat: indent autopep8

indent:
indent Modules/*.c Modules/*.h
rm -f Modules/*.c~ Modules/*.h~

.PHONY: autopep8
autopep8:
$(PYTHON) -m autopep8 -r -i -j0 $(AUTOPEP8_OPTS) \
Demo Lib Tests setup.py

0 comments on commit db24276

Please sign in to comment.