-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (37 loc) · 1.07 KB
/
Makefile
File metadata and controls
49 lines (37 loc) · 1.07 KB
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
45
46
47
48
49
# 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
fresh-doc: clean-doc
etc/make-doc.sh --check-unused
doctest:
cd docs && make doctest
install:
pip3 install . --use-feature=in-tree-build
format:
# ruff format can't yet sort imports, so we require the ruff check line too
# See https://github.com/astral-sh/ruff/issues/8232 for updates.
ruff check --select I --fix-only
ruff format
find src -name "*.*pp" -type f -exec clang-format-15 -i --verbose {} +
check: doctest
pytest -vv tests/test_*.py
lint:
etc/make-lint.sh
coverage:
@coverage run --source libsemigroups_pybind11 --omit="tests/*" -m pytest tests/test_*.py
@coverage html
@echo "See: htmlcov/index.html"
clean-doc:
rm -rf docs/_build
clean: clean-doc
find . -type d -name __pycache__ -prune -exec rm -rf {} \;
rm -rf libsemigroups_pybind11.egg-info
rm -f *.whl
rm -rf build/
superclean: clean
git clean -xdf --exclude *.swp --exclude *.swo