-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (34 loc) · 756 Bytes
/
Makefile
File metadata and controls
43 lines (34 loc) · 756 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
SHELL := /bin/bash
.PHONY: setup format lint test clean ci coverage
setup: clean
( \
python3 -m venv venv; \
source venv/bin/activate; \
python -m pip install pip --upgrade; \
pip install -e .; \
pip install -r requirements-dev.txt \
)
format:
black hookdns tests --target-version py39
lint:
black --check hookdns tests --target-version py39
flake8 hookdns tests
typing:
mypy
test:
pytest -v tests/
clean:
rm -rf .pytest_cache
rm -rf __pycache__
rm -rf hookdns.egg-info
rm -rf venv
ci:
python -m pip install pip --upgrade
pip install .
pip install -r requirements-dev.txt
pytest -v tests/
coverage:
python -m pip install pip --upgrade
pip install .
pip install -r requirements-dev.txt
coverage run -m pytest -v tests/