-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (29 loc) · 831 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
35
36
37
# Variables
VENV_DIR = .venv
PYTHON = $(VENV_DIR)/bin/python
PIP = $(VENV_DIR)/bin/pip
all: help
$(VENV_DIR):
python3 -m venv $(VENV_DIR)
run:
python3 main.py
install: $(VENV_DIR)
mkdir logs
$(PIP) install -r requirements.txt
test: $(VENV_DIR)
$(PYTHON) -m unittest discover -s tests
lint: $(VENV_DIR)
$(PIP) install ruff
$(VENV_DIR)/bin/ruff check src
clean:
rm -rf $(VENV_DIR)
find . -type f -name '*.pyc' -delete
find . -type d -name '__pycache__' -delete
help:
@echo "Usage:"
@echo " make install - Set up the virtual environment and install dependencies"
@echo " make run - Start the Card Bot in the foreground"
@echo " make test - Run tests"
@echo " make lint - Lint the code"
@echo " make clean - Clean up generated files"
@echo " make help - Show this help message"