-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (28 loc) · 765 Bytes
/
Makefile
File metadata and controls
39 lines (28 loc) · 765 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
.DEFAULT_GOAL := setup
create_venv:
rm -Rf venv
python3 -m venv venv
setup_local_db:
chmod u+x bin/setup_local_db.sh
./bin/setup_local_db.sh
upgrade_pip:
. venv/bin/activate; \
python3 -m pip install -U pip setuptools
populate_db:
venv/bin/python3 ./bin/populate_test_database.py etl secret@1
install_dep:
. venv/bin/activate; \
python3 -m pip install -e .[test,dev]
check_dep:
. venv/bin/activate; \
python3 -m pip check && echo "No conflicts" || exit 1
setup: create_venv setup_local_db upgrade_pip install_dep check_dep
echo "Setup is finished"
pylint:
pylint dz_mongodb dz_mongodb/sync_strategies --rcfile=pylintrc
test:
pytest tests -v
test_cov:
pytest --cov=dz_mongodb tests -v --cov-fail-under=42
local_build:
python setup.py sdist