-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
31 lines (23 loc) · 854 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
.PHONY: setup dev docs test test-coverage
VENV ?= venv
default: setup
setup:
pip3 install --user virtualenv
virtualenv $(VENV)
eval ". $(VENV)/bin/activate && pip install -r requirements/common.txt"
eval ". $(VENV)/bin/activate && pip install -r requirements/docs.txt"
eval ". $(VENV)/bin/activate && pip install -r requirements/tests.txt"
eval ". $(VENV)/bin/activate && pip install tox flake8"
eval ". $(VENV)/bin/activate && python setup.py develop"
lint:
flake8 --max-line-length=80 graphdot/ --exclude=basekernel.py
flake8 --max-line-length=80 example/
flake8 --max-line-length=80 --ignore=E121,E123,E126,E226,E24,E704,F401,W503,W504 test/
flake8 --max-line-length=80 --ignore=E121,E123,E126,E226,E24,E704,F401,W503,W504 benchmark/
test:
tox -e py37
test-coverage:
tox -e coverage
docs:
m2r2 CHANGELOG.md
cd docs && make html