-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (40 loc) · 1 KB
/
Makefile
File metadata and controls
51 lines (40 loc) · 1 KB
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
.PHONY: install-dev lint run clean unpack
# Installs both normal and dev dependencies
# Not needed for running as uv run handles deps itself
install-dev:
uv run pre-commit install --install-hooks
uv sync
lint:
uv run ruff check .
build:
uv build
run:
uv run balaambot
unpack:
unzip -u sounds.zip
clean:
@echo "Cleaning up..."
# Remove Python bytecode and __pycache__ directories
find . -type d -name "__pycache__" -exec rm -rf {} +
find . -type d -name ".pytest_cache" -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
# Remove Ruff cache
rm -rf .ruff_cache
# Remove build artifacts
rm -rf build/ dist/ *.egg-info
# Remove sounds directory if it exists
rm -rf sounds/
rm -rf persistent/
rm .coverage
docker-build:
docker build -t balaambot:latest .
docker-run:
docker run --rm -it \
--env-file .env \
-v $(PWD)/persistent:/app/persistent \
balaambot:latest
docker-brun: docker-build docker-run
test:
uv run pytest -m "not integration"
test-integration:
uv run pytest -m integration