-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathMakefile
54 lines (43 loc) · 1.14 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
.PHONY: all install format lint test test-coverage test-taxonomy
default: test
readme:
@PYTHONPATH=bugscpp/ python readme_generator.py README.rst.template
install:
@pip install --upgrade pip
@pip install -r requirements.txt
dev:
@pip install --upgrade pip
@pip install -r requirements.txt
@pip install -r requirements_dev.txt
format:
black .
isort .
lint:
flake8 . --config setup.cfg
test:
@PYTHONPATH=bugscpp/ python -m pytest tests/ --ignore tests/taxonomy
test-fast:
@PYTHONPATH=bugscpp/ python -m pytest tests/ --ignore tests/taxonomy --skip-slow
coverage:
ifeq ($(OS), Windows_NT)
@set PYTHONPATH=bugscpp/
python -m pytest tests/ \
--cov-report=xml:reports/coverage/coverage.xml \
--cov-report=html:reports/coverage \
--cov=bugscpp \
--ignore tests/taxonomy
else
PYTHONPATH=bugscpp/ python -m pytest tests/ \
--cov-report=xml:reports/coverage/coverage.xml \
--cov-report=html:reports/coverage \
--cov=bugscpp \
--ignore tests/taxonomy
endif
test-taxonomy:
ifeq ($(OS), Windows_NT)
@set PYTHONPATH=bugscpp/
python -m pytest tests/taxonomy
else
@PYTHONPATH=bugscpp/ python -m pytest tests/taxonomy
endif
all: install test