-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup makefile to include
.PHONY
specifiers **everywhere**!
- Loading branch information
1 parent
cd085f6
commit f8ee357
Showing
1 changed file
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,44 @@ | ||
.DEFAULT_GOAL := tests | ||
.PHONY: install-deps clean lint test cover tests | ||
|
||
.PHONY: install-deps | ||
install-deps: | ||
pip install -r python_requirements/test.txt | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -rf basest/*.py[cod] tests/*.py[cod] *.py[cod] *__pycache__* | ||
rm -rf basest.egg-info build dist | ||
|
||
.PHONY: lint | ||
lint: | ||
flake8 basest tests setup.py stress_test.py | ||
isort -rc -c basest tests | ||
isort -c setup.py stress_test.py | ||
|
||
.PHONY: fix-lint | ||
fix-lint: | ||
isort -rc basest tests | ||
isort setup.py stress_test.py | ||
|
||
.PHONY: test | ||
test: | ||
coverage run --source='basest' tests/__main__.py | ||
|
||
.PHONY: cover | ||
cover: | ||
coverage report -m --fail-under=100 | ||
|
||
.PHONY: tests | ||
tests: clean lint test cover | ||
|
||
.PHONY: stress-test | ||
stress-test: | ||
python stress_test.py | ||
|
||
.PHONY: package | ||
package: | ||
python setup.py sdist bdist_wheel | ||
|
||
.PHONY: release | ||
release: package | ||
twine upload dist/* |