29 lines
634 B
Makefile
29 lines
634 B
Makefile
.PHONY: start test demo clean lint install
|
|
|
|
# Start the bridge server
|
|
start:
|
|
python3 multi_user_bridge.py
|
|
|
|
# Run the test suite
|
|
test:
|
|
python3 -m pytest tests/ -v
|
|
|
|
# Run the demo
|
|
demo:
|
|
python3 demo.py
|
|
|
|
# Remove pycache and temp files
|
|
clean:
|
|
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
|
|
find . -type d -name .pytest_cache -exec rm -rf {} + 2>/dev/null || true
|
|
find . -type f -name "*.pyc" -delete 2>/dev/null || true
|
|
find . -type f -name "*.pyo" -delete 2>/dev/null || true
|
|
|
|
# Run flake8 linter
|
|
lint:
|
|
flake8 *.py tests/ --max-line-length=120
|
|
|
|
# Install dependencies
|
|
install:
|
|
pip install pytest flake8
|