-
Notifications
You must be signed in to change notification settings - Fork 154
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (33 loc) · 757 Bytes
/
Makefile
File metadata and controls
44 lines (33 loc) · 757 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
33
34
35
36
37
38
39
40
41
42
43
44
.PHONY: clean setup update format lint build tests tests-manual tests-slow tests-all docs
clean:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +
rm -rf build/
rm -rf dist/
rm -rf .cache/
rm -f .coverage
rm -rf .pytest_cache/
rm -rf docs/_build/*
setup:
-poetry env remove --all
poetry install
update:
poetry update
format:
poetry run ruff format .
lint:
poetry run ruff check .
build:
poetry build
tests:
poetry run pytest -s -m "not slow and not manual"
tests-manual:
poetry run pytest -s -m "manual"
tests-slow:
poetry run pytest -s -m "slow and not manual"
tests-all:
poetry run pytest
docs:
$(MAKE) -C docs html