xareelee / perfect_python_project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Perfect Python Project

This template generator creates the basic structure for a Python project.

Features

  • Python 3.10+ (configurable)
  • Poetry based dependency management
  • Development tasks registered in a Makefile for easy access and management
  • Custom Mercurial/Git hooks for pre-commit and pre-push events
  • Linting based on flake8 (and plugins), blue, mypy, isort and others
  • Tests based on pytest

Instructions

Install cookiecutter using pipx:

$ pipx install cookiecutter

Or, if you prefer, use pip instead:

$ pip install --user cookiecutter

Next, run the following command:

$ cookiecutter gh:andredias/perfect_python_project

Answer a few questions:

author []: Fulano de Tal
email []: fulano@email.com
project_name [Project]: Project X
project_slug [project_x]:
python_version [3.10]:
line_length [79]: 100
Select version_control:
1 - hg
2 - git
Choose from 1, 2 [1]: 1
github_respository_url []:

That's it!

References

About


Languages

Language:Shell 54.4%Language:Makefile 43.4%Language:Python 2.2%