Spaces:
Sleeping
Sleeping
| .PHONY: help install install-dev test lint format clean run docker-build docker-run | |
| help: | |
| @echo "Available commands:" | |
| @echo " make install - Install production dependencies" | |
| @echo " make install-dev - Install development dependencies" | |
| @echo " make test - Run tests with coverage" | |
| @echo " make lint - Run linters (flake8, mypy)" | |
| @echo " make format - Format code with black and isort" | |
| @echo " make clean - Clean build artifacts" | |
| @echo " make run - Run the application" | |
| @echo " make docker-build - Build Docker image" | |
| @echo " make docker-run - Run Docker container" | |
| install: | |
| pip install -e . | |
| install-dev: | |
| pip install -e ".[dev]" | |
| pre-commit install | |
| test: | |
| pytest -v --cov=src/writing_studio --cov-report=html --cov-report=term | |
| lint: | |
| flake8 src/ tests/ | |
| mypy src/ | |
| format: | |
| black src/ tests/ | |
| isort src/ tests/ | |
| clean: | |
| rm -rf build/ dist/ *.egg-info | |
| rm -rf .pytest_cache .mypy_cache .coverage htmlcov/ | |
| find . -type d -name __pycache__ -exec rm -rf {} + | |
| find . -type f -name "*.pyc" -delete | |
| run: | |
| python -m writing_studio.main | |
| docker-build: | |
| docker build -t writing-studio:latest . | |
| docker-run: | |
| docker-compose up | |