-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathMakefile
49 lines (37 loc) · 1.19 KB
/
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
44
45
46
47
48
49
.PHONY: all
all:
@echo "Nothing to build."
.PHONY: test
test: ##: run tests
tox -p auto
.PHONY: coverage
coverage: ##: measure test coverage
tox -e coverage
##:
.PHONY: lint
lint: ##: run all linters
tox -p auto -e flake8,mypy,isort,check-manifest,check-python-versions
.PHONY: flake8
flake8: ##: check for style problems
tox -e flake8
.PHONY: isort
isort: ##: check for incorrect import ordering
tox -e isort
.PHONY: mypy
mypy: ##: check for type errors
tox -e mypy
##:
.PHONY: releasechecklist
releasechecklist: check-readme # also release.mk will add other checks
.PHONY: check-readme
check-readme:
@rev_line=' rev: "'"`$(PYTHON) setup.py --version`"'"' && \
grep -q "^$$rev_line$$" README.rst || { \
echo "README.rst doesn't specify $$rev_line"; \
echo "Please run make update-readme"; exit 1; }
.PHONY: update-readme
update-readme:
sed -i -e 's/rev: ".*"/rev: "$(shell $(PYTHON) setup.py --version)"/' README.rst
FILE_WITH_VERSION = src/check_python_versions/__init__.py
include release.mk
HELP_SECTION_SEP = ""