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 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 setup setup test test_scheduled test_long_running update_from_template watch_gui
55
66# Main target i.e. default sessions defined in noxfile.py
77all :
@@ -33,7 +33,7 @@ act audit bump dist dist_vercel docs lint setup test update_from_template:
3333# # Install development dependencies and pre-commit hooks
3434install :
3535 sh install.sh
36- pre-commit install
36+ uv run pre-commit install
3737
3838# # Run tests marked as scheduled
3939test_scheduled :
@@ -60,6 +60,9 @@ docker_build:
6060 docker build -t oe-python-template-example --target all .
6161 docker build -t oe-python-template-example --target slim .
6262
63+ pre_commit_run_all :
64+ uv run pre-commit run --all-files
65+
6366watch_gui :
6467 uv run watch_gui.py
6568
8285 @echo " dist_vercel - Package as Vercel Function into dist_vercel/"
8386 @echo " docs [pdf] - Build documentation (add pdf for PDF format)"
8487 @echo " docker_build - Build Docker image oe-python-template-example"
85- @echo " install - Install development dependencies and pre-commit hooks"
88+ @echo " install - Install or update development dependencies inc. pre-commit hooks"
8689 @echo " lint - Run linting and formatting checks"
90+ @echo " pre_commit_run_all - Run pre-commit hooks on all files"
8791 @echo " setup - Setup development environment"
8892 @echo " test [3.11|3.12|3.13] - Run tests (for specific Python version)"
8993 @echo " test_scheduled - Run tests marked as scheduled with Python 3.11"
0 commit comments