-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (32 loc) · 761 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
41
42
#
# Makefile
# Malcolm Ramsay, 2018-01-03 09:24
#
#
lockfile = environment-lock.txt
help:
@echo "Usage:"
@echo " make help show this message"
@echo " make setup install dependencies and create environment"
@echo " make test run the test suite"
setup:
conda env create
pre-commit install-hooks
lint:
python3 -m isort --check-only --recursive src/
python3 -m isort --check-only --recursive test/
python3 -m black --check src/
python3 -m black --check test/
python3 -m flake8 src/
python3 -m flake8 test/
python3 -m mypy src/
test:
python3 -m pytest
test-docs:
$(MAKE) -C docs html SPHINXOPTS="-W"
install:
pip install -e . --no-deps
docs:
$(MAKE) -C docs html
.PHONY: help test clean deploy docs
# vim:ft=make