feat: init project
This commit is contained in:
55
Makefile
Normal file
55
Makefile
Normal file
@@ -0,0 +1,55 @@
|
||||
.PHONY: install test lint format clean run-example
|
||||
|
||||
# Install dependencies
|
||||
install:
|
||||
poetry install
|
||||
|
||||
# Install with development dependencies
|
||||
install-dev:
|
||||
poetry install --with dev
|
||||
|
||||
# Run tests
|
||||
test:
|
||||
poetry run python test_vlchan.py
|
||||
|
||||
# Run example
|
||||
run-example:
|
||||
@echo "Usage: make run-example VIDEO=/path/to/video.mp4 [SYNCHAN=http://localhost:3000]"
|
||||
poetry run python example.py $(VIDEO) $(SYNCHAN)
|
||||
|
||||
# Run player directly
|
||||
run-player:
|
||||
@echo "Usage: make run-player VIDEO=/path/to/video.mp4 [SYNCHAN=http://localhost:3000]"
|
||||
poetry run python -m vlchan.player $(VIDEO) $(SYNCHAN)
|
||||
|
||||
# Lint code
|
||||
lint:
|
||||
poetry run ruff check .
|
||||
|
||||
# Format code
|
||||
format:
|
||||
poetry run ruff format .
|
||||
|
||||
# Type check
|
||||
type-check:
|
||||
poetry run mypy vlchan/
|
||||
|
||||
# Clean up
|
||||
clean:
|
||||
find . -type d -name "__pycache__" -exec rm -rf {} +
|
||||
find . -type f -name "*.pyc" -delete
|
||||
find . -type f -name "*.pyo" -delete
|
||||
|
||||
# Show help
|
||||
help:
|
||||
@echo "Available targets:"
|
||||
@echo " install - Install dependencies"
|
||||
@echo " install-dev - Install with development dependencies"
|
||||
@echo " test - Run tests"
|
||||
@echo " run-example - Run example script (requires VIDEO=path)"
|
||||
@echo " run-player - Run player directly (requires VIDEO=path)"
|
||||
@echo " lint - Run linter"
|
||||
@echo " format - Format code"
|
||||
@echo " type-check - Run type checker"
|
||||
@echo " clean - Clean up cache files"
|
||||
@echo " help - Show this help"
|
||||
Reference in New Issue
Block a user