-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
30 lines (23 loc) · 658 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
install:
pip install poetry==1.7.1 && \
poetry install;
pre-commit:
pre-commit run --all-files
checks:
black --check emrflow/*
isort emrflow/* --check-only
pylint --fail-under=7 emrflow/*
lint:
black emrflow/*
isort emrflow/*
pylint --fail-under=7 emrflow/*
local-test:
PYTHONPATH=${PYTHONPATH}:.:tests \
poetry run pytest --cov=emrflow/ --cov-fail-under=70 tests/
test:
PYTHONPATH=${PYTHONPATH}:.:tests \
poetry run pytest --cov=emrflow/ --cov-report xml:cov.xml --cov-fail-under=70 tests/unit_tests
clean:
find ./ -name "*~" | xargs rm -v || :
find ./ -name "*.pyc" | xargs rm -v || :
find ./ -name "__pycache__" | xargs rm -rf || :