-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (24 loc) · 638 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
DEFAULT_GOAL := help
PROJECT=veritas
.PHONY: help
help:
@echo "Available rules:"
@fgrep -h "##" Makefile | fgrep -v fgrep | sed 's/\(.*\):.*##/\1:/'
.PHONY: clean
clean: ## remove build artifacts
rm -fr build/
rm -fr dist/
rm -fr *.egg-info
find ${PROJECT} -name '*.pyc' -exec rm -f {} +
find ${PROJECT} -name '*.pyo' -exec rm -f {} +
find ${PROJECT} -name '*~' -exec rm -f {} +
.PHONY: lint
lint: ## Lint and black reformat files
flake8 ${PROJECT} tests
black ${PROJECT} tests
.PHONY: help
test: ## run tests with single local version of python
py.test
.PHONY: help
test-all: ## run tests for all versions of python
tox