-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (36 loc) · 1.05 KB
/
Copy pathMakefile
File metadata and controls
48 lines (36 loc) · 1.05 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
PYTHON := python3
VENV_DIR := venv
HOOKS_DIR := .githooks
.PHONY: install hooks venv clean lint test deploy docker-up docker-down trading-agent-up stack-up smoke
install: hooks venv
@echo "Installing Python dependencies..."
$(VENV_DIR)/bin/pip install --upgrade pip
$(VENV_DIR)/bin/pip install -r requirements.txt
@echo "Installation complete."
hooks:
@echo "Configuring git hooks..."
git config core.hooksPath $(HOOKS_DIR)
chmod +x $(HOOKS_DIR)/*
@echo "Git hooks enabled."
venv:
@if [ ! -d "$(VENV_DIR)" ]; then \
echo "Creating virtual environment..."; \
$(PYTHON) -m venv $(VENV_DIR); \
fi
clean:
rm -rf $(VENV_DIR) .pytest_cache __pycache__
lint:
$(VENV_DIR)/bin/pip install flake8 >/dev/null 2>&1 || true
$(VENV_DIR)/bin/flake8 market_data tests
test:
$(VENV_DIR)/bin/pytest -m "not e2e"
docker-up:
docker compose up --build market_data
docker-down:
docker compose down
trading-agent-up:
docker compose up --build trading_agent
stack-up:
docker compose up --build market_data trading_agent auth_service
smoke: install
scripts/run_smoke.sh