Giter Site home page Giter Site logo

barahlush / python_project_starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andredias/perfect_python_project

0.0 0.0 0.0 67 KB

Cookiecutter-based Python project starter. Specified for GitHub.

Shell 41.55% Python 2.74% Makefile 55.71%

python_project_starter's Introduction

Perfect Python Project Template

This project template creates the basic structure for a Python project. The article How to Set up a Perfect Python Project describes all the design decisions used here.

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 ruff, blue, mypy and others
  • Tests based on pytest

Instructions

To instantiate the template into a new project, you'll need cookiecutter. The best way to use it just once is through pipx:

$ pipx run cookiecutter gh:andredias/perfect_python_project

If you prefer, use can install it throught 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 []: [email protected]
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!

python_project_starter's People

Contributors

barahlush avatar andredias avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.