forked from superduper-io/superduper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (28 loc) · 833 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
PYTEST_ARGUMENTS ?=
COMPOSE_ARGUMENTS ?=
.PHONY: test-containers
test-containers:
docker compose -f test/material/docker-compose.yml up mongodb mongo-init -d $(COMPOSE_ARGUMENTS)
.PHONY: clean-test-containers
clean-test-containers:
docker compose -f test/material/docker-compose.yml down $(COMPOSE_ARGUMENTS)
.PHONY: lint-and-type-check
lint-and-type-check:
isort --check superduperdb test
black --check superduperdb test
ruff check superduperdb test
mypy superduperdb
interrogate superduperdb
.PHONY: test
test: test-containers
pytest $(PYTEST_ARGUMENTS)
.PHONY: fix-and-test
fix-and-test: test-containers
isort superduperdb test
black superduperdb test
ruff check --fix superduperdb test
mypy superduperdb
pytest $(PYTEST_ARGUMENTS)
interrogate superduperdb
.PHONY: clean-test
clean-test: clean-test-containers