-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
37 lines (29 loc) · 662 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
.PHONY: all dist tests qa flake8 pylint mypy
all: qa
tests:
pytest
qa: black flake8 pylint mypy
black:
git ls-files | grep '\.py$$' | xargs black --quiet --check --diff
flake8:
flake8 src/caterpillar tests
pylint:
pylint src/caterpillar tests
mypy:
mypy src/caterpillar
dist:
@- $(RM) -r build
./setup.py sdist
./setup.py bdist_wheel
for f in dist/*.tar.gz dist/*.whl; do \
case "$$f" in \
*.dev*) \
;; \
*) \
test -e "$$f.asc" \
&& test "$$f.asc" -nt "$$f" \
|| gpg --armor --detach-sign --yes "$$f" \
;; \
esac \
done
scripts/bump-to-dev-version