Skip to content

Commit f8ee357

Browse files
committed
Cleanup makefile to include .PHONY specifiers **everywhere**!
1 parent cd085f6 commit f8ee357

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Makefile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,44 @@
11
.DEFAULT_GOAL := tests
2-
.PHONY: install-deps clean lint test cover tests
32

3+
.PHONY: install-deps
44
install-deps:
55
pip install -r python_requirements/test.txt
66

7+
.PHONY: clean
78
clean:
89
rm -rf basest/*.py[cod] tests/*.py[cod] *.py[cod] *__pycache__*
910
rm -rf basest.egg-info build dist
1011

12+
.PHONY: lint
1113
lint:
1214
flake8 basest tests setup.py stress_test.py
1315
isort -rc -c basest tests
1416
isort -c setup.py stress_test.py
1517

18+
.PHONY: fix-lint
1619
fix-lint:
1720
isort -rc basest tests
1821
isort setup.py stress_test.py
1922

23+
.PHONY: test
2024
test:
2125
coverage run --source='basest' tests/__main__.py
2226

27+
.PHONY: cover
2328
cover:
2429
coverage report -m --fail-under=100
2530

31+
.PHONY: tests
2632
tests: clean lint test cover
2733

34+
.PHONY: stress-test
2835
stress-test:
2936
python stress_test.py
3037

38+
.PHONY: package
3139
package:
3240
python setup.py sdist bdist_wheel
3341

42+
.PHONY: release
3443
release: package
3544
twine upload dist/*

0 commit comments

Comments
 (0)