-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
47 lines (35 loc) · 886 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
38
39
40
41
42
43
44
45
46
47
.PHONY: help test check clean
.DEFAULT: help
help:
@echo "make test"
@echo " run tests"
@echo "make lint"
@echo " run flake8, pylint, and mypy"
@echo "make check"
@echo " run black, flake8, mypy, pylint, and pytest"
@echo "make black"
@echo " run black code formatter"
@echo "make clean"
@echo " clean-up build artifacts"
clean-pyc:
find . -name '*.pyc' -exec rm --force {} +
find . -name '*.pyo' -exec rm --force {} +
clean-build:
rm --force --recursive build/
rm --force --recursive dist/
rm --force --recursive *.egg-info
clean: clean-build clean-pyc
test:
pytest -v tests/
testCoverage:
pytest -v --cov=flapy --cov-branch --cov-report=term-missing --cov-report html:cov_html tests/
lint: flake8 pylint mypy
flake8:
flake8 .
pylint:
pylint flapy
mypy:
mypy flapy
black:
black .
check: black flake8 mypy pylint test