11# Makefile for running common development tasks
22
33# Define all PHONY targets
4- .PHONY : all act audit bump clean dist dist_vercel docs docker_build install lint pre_commit_run_all setup setup test test_scheduled test_long_running update_from_template watch_gui
4+ .PHONY : all act audit bump clean dist dist_vercel docs docker_build install lint pre_commit_run_all profile setup setup test test_scheduled test_long_running update_from_template gui_watch
55
66# Main target i.e. default sessions defined in noxfile.py
77all :
@@ -63,8 +63,11 @@ docker_build:
6363pre_commit_run_all :
6464 uv run pre-commit run --all-files
6565
66- watch_gui :
67- uv run watch_gui.py
66+ gui_watch :
67+ uv run runner/gui_watch.py
68+
69+ profile :
70+ uv run --all-extras python -m scalene runner/scalene.py
6871
6972# Special rule to catch any arguments (like patch, minor, major, pdf, Python versions, or x.y.z)
7073# This prevents "No rule to make target" errors when passing arguments to make commands
@@ -85,14 +88,15 @@ help:
8588 @echo " dist_vercel - Package as Vercel Function into dist_vercel/"
8689 @echo " docs [pdf] - Build documentation (add pdf for PDF format)"
8790 @echo " docker_build - Build Docker image oe-python-template-example"
91+ @echo " gui_watch - Open GUI in browser and update on changes in source code"
8892 @echo " install - Install or update development dependencies inc. pre-commit hooks"
8993 @echo " lint - Run linting and formatting checks"
9094 @echo " pre_commit_run_all - Run pre-commit hooks on all files"
95+ @echo " profile - Profile with Scalene"
9196 @echo " setup - Setup development environment"
9297 @echo " test [3.11|3.12|3.13] - Run tests (for specific Python version)"
9398 @echo " test_scheduled - Run tests marked as scheduled with Python 3.11"
9499 @echo " test_long_running - Run tests marked as long running with Python 3.11"
95100 @echo " update_from_template - Update from template using copier"
96- @echo " watch_gui - Open GUI in browser and watch for changes"
97101 @echo " "
98102 @echo " Built with love in Berlin 🐻"
0 commit comments