forked from xerrors/Yuxi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (26 loc) · 739 Bytes
/
Makefile
File metadata and controls
36 lines (26 loc) · 739 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
.PHONY: start stop logs lint format format_diff router-tests
PYTEST_ARGS ?=
start:
docker compose up -d
stop:
docker compose down
logs:
@docker logs --tail=50 api-dev
@echo "\n\nBranch: $$(git branch --show-current)"
@echo "Commit ID: $$(git rev-parse HEAD)"
@echo "System: $$(uname -a)"
######################
# LINTING AND FORMATTING
######################
lint:
uv run python -m ruff check .
uv run python -m ruff format src --diff
uv run python -m ruff check --select I src
format:
uv run ruff format .
uv run ruff check . --fix
uv run python -m ruff check --select I src --fix
format_diff:
uv run ruff format --diff .
router-tests:
docker compose exec -T api uv run --group test pytest test/api $(PYTEST_ARGS)