forked from roayh/checkout_kata
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (33 loc) · 822 Bytes
/
Makefile
File metadata and controls
44 lines (33 loc) · 822 Bytes
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
BIN=.venv/bin
remove-env:
rm -fr env/
clean-build:
rm -fr target/
rm -fr build/
rm -fr dist/
rm -fr .eggs/
find . -name '*.egg-info' -exec rm -fr {} +
find . -name '*.egg' -exec rm -f {} +
find . -name '*.so' -exec rm -f {} +
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +
clean-test:
rm -fr .tox/
rm -f .coverage
rm -fr htmlcov/
rm -fr .pytest_cache
clean: remove-env clean-build clean-pyc clean-test
virtualenv: clean
python3 -m venv .venv
update_pip:
$(BIN)/pip install --upgrade pip
pip_install:
$(BIN)/pip install -r requirements.txt
test:
$(BIN)/pytest tests
build_new: clean virtualenv update_pip pip_install test
run_pre_commit:
$(BIN)/pre-commit run --all-file