diff --git a/Makefile b/Makefile index aaad452..bb7fdde 100644 --- a/Makefile +++ b/Makefile @@ -37,3 +37,7 @@ update-template-packages: ## Update the project using the initial copier templa .PHONY: clean clean: ## Clean the temporary files. rm -rf megalinter-reports + +.PHONY: run +run: ## Run the application + poetry run python {{module_name}} diff --git a/project_template/{{module_name}}/__main__.py b/project_template/{{module_name}}/__main__.py new file mode 100644 index 0000000..536fbf5 --- /dev/null +++ b/project_template/{{module_name}}/__main__.py @@ -0,0 +1,8 @@ +from calculator import Calculator +calc = Calculator() + +calc.add(5) + +calc.subtract(2) + +print(calc.cumulative_total)