-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
56 lines (44 loc) · 1.03 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
SHELL := /bin/bash
.PHONY: setup
setup: venv lint test-unit
.PHONY: clean-pyc
clean-pyc:
find . -name '*.pyc' -exec rm -rf {} +
find . -name '*.pyo' -exec rm -rf {} +
find . -name '*~' -exec rm -rf {} +
find . -name '__pycache__' -exec rm -rf {} +
.PHONY: clean-test
clean-test:
rm -rf .pytest_cache
rm -rf .mypy_cache
rm -rf .coverage
rm -rf .reports
rm -rf htmlcov/
rm -rf .pytest_cache
.PHONY: clean
clean: clean-pyc clean-test
venv: poetry.lock
poetry install
.PHONY: format
format: venv
poetry run black nodestream_plugin_neo4j tests
poetry run isort nodestream_plugin_neo4j tests
.PHONY: lint
lint: venv
poetry run black nodestream_plugin_neo4j tests --check
poetry run ruff nodestream_plugin_neo4j tests
.PHONY: test-unit
test-unit: venv
poetry run pytest -m "not e2e"
.PHONY: test-e2e
test-e2e: venv
poetry run pytest -m "e2e"
.PHONY: docs-build
docs-build: venv
poetry run mkdocs build
.PHONY: docs-server
docs-server: venv
poetry run mkdocs serve
.PHONY: snapshot
snapshot: venv
poetry run pytest --snapshot-update