-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (46 loc) · 1.27 KB
/
Copy pathMakefile
File metadata and controls
54 lines (46 loc) · 1.27 KB
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
current_dir = $(shell pwd)
PROJECT = language_competition
DOCKER_ORG = vicentear
DOCKER_TAG ?= ${PROJECT}
VERSION ?= latest
n ?= auto
.POSIX:
style:
black .
isort .
.POSIX:
check: style
!(grep -R /tmp ${PROJECT}/tests)
flakehell lint ${PROJECT}
pylint ${PROJECT}
black --check ${PROJECT}
.PHONY: test
test:
find -name "*.pyc" -delete
pytest -n $n -s -o log_cli=true -o log_cli_level=info
.PHONY: test-codecov
test-codecov:
find -name "*.pyc" -delete
pytest -n $n -s -o log_cli=true -o log_cli_level=info --cov=./ --cov-report=xml --cov-config=pyproject.toml
.PHONY: pipenv-install
pipenv-install:
rm -rf *.egg-info && rm -rf build && rm -rf __pycache__
rm -f Pipfile && rm -f Pipfile.lock
pipenv install --dev -r requirements-test.txt
pipenv install --pre --dev -r requirements-lint.txt
pipenv install -r requirements.txt
pipenv install -e .
pipenv lock
.PHONY: pipenv-test
pipenv-test:
find -name "*.pyc" -delete
pipenv run pytest -s
.PHONY: remove-dev-packages
remove-dev-packages:
pip3 uninstall -y cython && \
apt-get remove -y cmake pkg-config flex bison curl libpng-dev \
libjpeg-turbo8-dev zlib1g-dev libhdf5-dev libopenblas-dev gfortran \
libfreetype6-dev libjpeg8-dev libffi-dev && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*