forked from tkrajina/git-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
43 lines (36 loc) · 763 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
GIT_PORCELAIN_STATUS=$(shell git status --porcelain)
.PHONY: test
test: mypy
# At least make sure simple commands run without errors:
./git-multi status
./git-old-branches -d -1
./git-recent
./git-relation HEAD HEAD~5
./git-semver
.PHONY: mypy
mypy:
mypy --strict .
.PHONY: check-all-commited
check-all-commited:
if [ -n "$(GIT_PORCELAIN_STATUS)" ]; \
then \
echo 'YOU HAVE UNCOMMITED CHANGES'; \
git status; \
exit 1; \
fi
.PHONY: pypi-upload
pypi-upload: check-all-commited
rm -Rf dist/*
python setup.py sdist
twine upload dist/*
.PHONY: ctags
ctags:
ctags -R .
.PHONY: clean
clean:
rm -Rf build
rm -Rf dist
rm -Rf MANIFEST
.PHONY: pyflakes
pyflakes:
pyflakes $(grep -r -l "/usr/bin/python" * */*) $(find . -name "*py")