Skip to content

Commit 9956b3d

Browse files
committed
Clean up Makefile a bit, save a command for syncing and updating the virtualenv with uv
1 parent cbb7d6b commit 9956b3d

1 file changed

Lines changed: 13 additions & 14 deletions

File tree

Makefile

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
CONTAINER_NAME := "splunk"
22

3+
.PHONY: venv-sync
4+
sync-venv: uv sync --all-extras --no-config
5+
6+
.PHONY: venv-upgrade
7+
sync-venv: uv sync --all-extras --no-config --upgrade
8+
39
.PHONY: docs
4-
docs:
5-
@make -C ./docs html
10+
docs: make -C ./docs html
611

712
.PHONY: test
8-
test:
9-
@python -m pytest ./tests
13+
test: python -m pytest ./tests
1014

1115
.PHONY: test-unit
12-
test-unit:
13-
@python -m pytest ./tests/unit
16+
test-unit: python -m pytest ./tests/unit
1417

1518
.PHONY: test-integration
16-
test-integration:
17-
@python -m pytest ./tests/integration ./tests/system
19+
test-integration: python -m pytest ./tests/integration ./tests/system
1820

1921
.PHONY: docker-up
20-
docker-up:
21-
@docker-compose up -d
22+
docker-up: docker-compose up -d
2223

2324
.PHONY: docker-ensure-up
2425
docker-ensure-up:
@@ -34,15 +35,13 @@ docker-ensure-up:
3435
docker-start: docker-up docker-ensure-up
3536

3637
.PHONY: docker-down
37-
docker-down:
38-
@docker-compose stop
38+
docker-down: docker-compose stop
3939

4040
.PHONY: docker-restart
4141
docker-restart: docker-down docker-start
4242

4343
.PHONY: docker-remove
44-
docker-remove:
45-
@docker-compose rm -f -s
44+
docker-remove: docker-compose rm -f -s
4645

4746
.PHONY: docker-refresh
4847
docker-refresh: docker-remove docker-start

0 commit comments

Comments
 (0)