forked from libsemigroups/libsemigroups_pybind11
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (32 loc) · 949 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
43
44
# Copyright (c) 2021-2024 J. D. Mitchell
#
# Distributed under the terms of the GPL license version 3.
#
# The full license is in the file LICENSE, distributed with this software.
all: install doc
doc:
etc/make-doc.sh
doctest:
cd docs && make doctest
install:
pip3 install . --use-feature=in-tree-build
black:
black setup.py tests/*.py libsemigroups_pybind11/*.py docs/source/conf.py
check: doctest
pytest -vv tests/test_*.py
lint:
pylint --exit-zero setup.py tests/*.py libsemigroups_pybind11/*.py docs/source/conf.py
cpplint src/*.hpp src/*.cpp
coverage:
@coverage run --source . --omit="tests/*" -m pytest tests/test_*.py
@coverage html
@echo "See: htmlcov/index.html"
clean-doc:
rm -rf docs/_build
clean: clean-doc
rm -rf __pycache__ libsemigroups_pybind11.egg-info
rm -rf tests/__pycache__ libsemigroups_pybind11/__pycache__
rm -f *.whl
rm -rf build/
superclean: clean
git clean -xdf --exclude *.swp --exclude *.swo