Skip to content

Commit

Permalink
feat: create Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
iCarossio committed Jun 30, 2024
1 parent 5d36e0a commit d3e3948
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 17 deletions.
20 changes: 20 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.PHONY: all poetry_install dependencies git_hooks_init

all: poetry_install dependencies git_hooks_init
echo "---- Your working directory is all set :) ----"

poetry_install:
@echo "---- Installing Python Poetry ----"
pip install -U pip
pip install -U poetry
poetry config virtualenvs.in-project true
poetry config virtualenvs.path ".venv"

dependencies: poetry_install
@echo "---- Installing Python dependencies ----"
poetry install

git_hooks_init:
@echo "---- Git hooks init (using mookme) ----"
npm install
npx mookme init --only-hook --skip-types-selection
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# pytemplate ![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/Escape-Technologies/python-project-template) [![CI](https://github.com/Escape-Technologies/python-project-template/actions/workflows/ci.yaml/badge.svg)](https://github.com/Escape-Technologies/python-project-template/actions/workflows/ci.yaml) [![CD](https://github.com/Escape-Technologies/python-project-template/actions/workflows/cd.yaml/badge.svg)](https://github.com/Escape-Technologies/python-project-template/actions/workflows/cd.yaml)

Run the `./install-dev.sh`
Run `make`

Source your `.venv`: `source .venv/bin/activate`

Rename all `app` (including folder names) by the name of your project.
If you wish, rename all `app` (including folder names) by the name of your project.

Make sure you can run the `app-cli` command that should display "Hello World!"

Expand Down
15 changes: 0 additions & 15 deletions install-dev.sh

This file was deleted.

0 comments on commit d3e3948

Please sign in to comment.