forked from ecmwf/pdbufr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (27 loc) · 846 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
environment := PDBUFR
default:
@echo No default
code-quality:
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
mypy --strict .
code-style:
black .
isort .
tests:
pytest -v --cov=. --cov-report=html README.rst tests
deploy:
check-manifest .
python setup.py sdist bdist_wheel
env-create:
conda env create -n $(environment) -f environment.in.yml
conda install -n $(environment) -y pytest pytest-cov black flake8 mypy isort wheel
conda install -n $(environment) -c conda-forge -y check-manifest
env-update:
conda env update -n $(environment) -f environment.in.yml
testclean:
$(RM) -r */__pycache__ .coverage .cache tests/.ipynb_checkpoints *.lprof
clean: testclean
$(RM) -r */*.pyc htmlcov dist build .eggs
distclean: clean
$(RM) -r *.egg-info
.PHONY: code-quality code-style tests env-create env-update