-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (29 loc) · 944 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
.PHONY: clean_local build install lint test doc_api doc_html clean_doc
clean_local:
@find . -name "*.pyc" -type f -delete
@find . -name "*.py.cover" -type f -delete
@find . -name "__pycache__" -type d -delete
@rm -f .coverage coverage.xml
@ruff clean
@rm -rf .mypy_cache .pytest_cache build dist nxbench.egg-info htmlcov .benchmarks env
build:
@docker-compose build
install: clean_local
@pip uninstall nxbench -y
@pip install -e .
lint: clean_local
@isort .
@ruff format .
@black .
test: clean_local
@pytest -vvv --disable-warnings --cov=nxbench --cov-report=xml --cov-report=html --cov-report=term-missing
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SOURCEDIR = doc
BUILDDIR = doc/build
doc_html:
@$(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS)
doc_api:
@sphinx-apidoc -o "$(SOURCEDIR)/api" nxbench **/tests/*
clean_doc:
@$(SPHINXBUILD) -M clean "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS)