Skip to content

ambersariya/cookiecutter-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🍪 Python Cookie Cutter

A configurable python project template to help get started.

  • There is no framework at all. It's up to you to use your favourite one.
  • There is no poetry.lock file checked in, so you can have latest set of libraries at that time.
  • Uses Makefile and has alot of targets for your day to day workflow
  • Uses .editorconfig
  • Preconfigured .gitignore file

The template only contains the following dependencies.

[tool.poetry.dependencies]
python = "^{{cookiecutter.python_version}}"

[tool.poetry.dev-dependencies]
pytest = "^5.2"
black = "^22.1.0"
flake8 = "^3.8.4"
mypy = "^0.960"
isort = "^5.10.1"

Install

pip install cookiecutter

Create project

🍪 $ cookiecutter gh:ambersariya/cookiecutter-python

You've downloaded ~/.cookiecutters/cookiecutter-python before. Is it okay to delete and re-download it? [yes]: no
Do you want to re-use the existing version? [yes]: yes
project_name [some project name]: example_proj
project_short_description [A project to]: Captures screenshots of webpages
project_slug [example_proj]:
package_slug [example_proj]:
python_version [3.9.7]:
package_manager [poetry]:
version [0.1.0]:
full_name [Firstname Lastname]: Firstname Lastname
email [username@example.org]: firstname lastname
license []:

🍪 $

Test

Change into your newly created project directory and simply run the following to check if everything installed properly.

🍪 $ make

Check-in Project

When you've customised your project scaffolding, it is ready to be checked into a git repository.

🍪 $ git init
🍪 $ git add .
🍪 $ git commit -am "feat: first commit"
🍪 $ git push -u origin main