forked from libsemigroups/libsemigroups-python-bindings
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (25 loc) · 787 Bytes
/
Makefile
File metadata and controls
32 lines (25 loc) · 787 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
pip-install:
pip install --user . --upgrade
pip3 install --user . --upgrade
clean:
rm -f tests/*.pyc *.pyc
tests:
python2.7 -m nose --with-doctest
python3.6 -m nose --with-doctest
coverage: pip-install
coverage run -m unittest discover
coverage html
@echo "See: htmlcov/index.html"
lint:
@command -v pylint >/dev/null 2>&1 || { echo >&2 "pylint is required but is not installed. Aborting."; exit 1; }
pylint -rn semigroups/*.py
pylint -rn tests/test_*.py
@command -v flake8 >/dev/null 2>&1 || { echo >&2 "flake8 is required but is not installed. Aborting."; exit 1; }
flake8 semigroups/*.py
flake8 tests/test_*.py
doc:
cd docs ; make html; cd ..
@echo "See: docs/_build/html/index.html"
doc-clean:
cd docs ; make clean; cd ..
.PHONY: coverage tests lint