Files
dax-ml/Makefile

50 lines
1.1 KiB
Makefile

.PHONY: help install install-dev test lint format type-check clean run setup-db
help:
@echo "ICT ML Trading System - Makefile Commands"
@echo ""
@echo " make install - Install production dependencies"
@echo " make install-dev - Install development dependencies"
@echo " make test - Run test suite"
@echo " make lint - Run linters (flake8)"
@echo " make format - Format code (black, isort)"
@echo " make type-check - Run type checker (mypy)"
@echo " make clean - Clean build artifacts"
@echo " make setup-db - Initialize database"
install:
pip install -r requirements.txt
install-dev:
pip install -r requirements-dev.txt
pre-commit install
test:
pytest tests/ -v
lint:
flake8 src/ tests/
bandit -r src/
format:
black src/ tests/
isort src/ tests/
type-check:
mypy src/
clean:
rm -rf build/
rm -rf dist/
rm -rf *.egg-info
rm -rf .pytest_cache/
rm -rf .mypy_cache/
rm -rf htmlcov/
rm -rf .coverage
find . -type d -name __pycache__ -exec rm -r {} +
find . -type f -name "*.pyc" -delete
setup-db:
python scripts/setup_database.py