-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
83 lines (70 loc) · 1.99 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
.PHONY: help venv vulnerability-scan lint test travis-test tox tox-recreate docs server-docs bumpversion-patch bumpversion-minor
.DEFAULT: help
help:
@echo "make venv"
@echo " activates the virtual environment with pipenv (eg $ pipenv shell)"
@echo " "
@echo "make vulnerability-scan"
@echo " runs $ pipenv check to look for vulnerabilities in Python packages used"
@echo " "
@echo "make lint"
@echo " runs mypy"
@echo " "
@echo "make test"
@echo " runs the tests"
@echo " "
@echo "make test-travis"
@echo " runs the tests like they would run on Travis (where some tests are skipped)"
@echo " "
@echo "make tox"
@echo " runs tox - tests in all environments"
@echo " "
@echo "make run-act"
@echo " runs act - to run the GitHub Actions locally (all tests on all OS using docker),"
@echo " It will fail the codecov upload - the last step of the workflow, but that is okey."
@echo " "
@echo "make tox-recreate"
@echo " makes tox to recreate all its virtual environments before running the tests."
@echo " This is required everytime when package dependencies change!"
@echo " "
@echo "make docs"
@echo " builds the html docs which becomes available under docs/_build/html"
@echo " "
@echo "make serve-docs"
@echo " serves the docs from docs/_build/html by making it available under http://127.0.0.1:8088/_build/html/"
@echo " "
@echo "make bumpversion-patch"
@echo " bump the patch version"
@echo " "
@echo "make bumpversion-minor"
@echo " bump the minor version"
venv:
pipenv shell
vulnerability-scan:
pipenv check . --verbose
lint:
mypy falcon_limiter --ignore-missing-imports
test:
pytest -x --cov-report term-missing
test-travis:
TRAVIS='yes' pytest -x --cov-report term-missing
tox:
tox
tox-recreate:
tox --recreate
run-act:
act
docs:
cd docs && \
make html
serve-docs:
cd docs && \
python -m http.server 8088
bumpversion-patch:
bump2version patch
cd docs && \
make html
bumpversion-minor:
bump2version minor
cd docs && \
make html