Git Product home page Git Product logo

pyproject-package's Introduction

Pyproject.toml Package Cookiecutter

A minimal cookiecutter template for Python packages leveraging the pypackage.toml configuration file along with a standardized set of development tools.

Based heavily on the cookiecutter-package-minimal template.

Usage

pip install cookiecutter
git clone https://github.com/Spacecow99/pyproject-package.git
cookiecutter pyproject-package/

Explanations

Python

The minimally supported Python version is set to Python3.7 by default.

pyproject.toml

Package dependencies along with any tool configurations should be defined using the pyproject.toml file format. This helps cut down on the number of non-source files within the repository.

Flit

Flit is used as the build-system for the package. Note that this comes with certain limitations, especially for a package that depends on C bindings.

Pylint

Linting is performed with pylint using the Google Python Styleguide as a base. Styleguide defined within pyproject.toml should override any system/user pylint settings.

Black

Black is used for formatting should there be a requirement to enforce a standardized code structure/form.

Sphinx

Sphinx is used to configure and build any external package documentation. All documentation should be markdown format except for inline code documentation.

In addition to the core Sphinx extensions, several others listed below are also configured.

Myst

The myst-parser extension is used to enable Sphinx to build markdown format documentation.

ReadTheDocs Theme

Sphinx should use the ReadTheDocs theme to provided consistent documentation look and feel whether the documentation is local or hosted on rtd.

Bandit

Bandit is used as a rudementary security scanner to detect potential security defects during local development.

Pytest

Pytest is the testing framework used for building test cases.

Tox

Tox is used to manage package tests across different python versions.

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.