-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
54 lines (44 loc) · 844 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
48
49
50
51
52
53
54
lint:
python -m isort .
python -m black .
python -m pylint scrapli_cfg/
python -m pydocstyle .
python -m mypy --strict scrapli_cfg/
darglint:
find scrapli_cfg -type f \( -iname "*.py"\ ) | xargs darglint -x
test:
python -m pytest \
tests/
cov:
python -m pytest \
--cov=scrapli_cfg \
--cov-report html \
--cov-report term \
tests/
test_unit:
python -m pytest \
tests/unit/
cov_unit:
python -m pytest \
--cov=scrapli_cfg \
--cov-report html \
--cov-report term \
tests/unit/
test_integration:
python -m pytest \
tests/integration/
cov_integration:
python -m pytest \
--cov=scrapli_cfg \
--cov-report html \
--cov-report term \
tests/integration/
.PHONY: docs
docs:
python docs/generate.py
test_docs:
mkdocs build --clean --strict
htmltest -c docs/htmltest.yml -s
rm -rf tmp
deploy_docs:
mkdocs gh-deploy