Skip to main content

A python project template, using Poetry.

Project description

python-project-template

A python project template, using Poetry.

Setup Instructions

  1. Rename the Template
    Run the following command to rename the template to your desired project name:

    ./rename-template.sh <new_project_name>
    
  2. Install Poetry and Poethepoet
    If you don't have Poetry and Poe installed, you can install them from requirements using pip:

    pip install -r requirements.txt
    
  3. Install Project Dependencies
    Use Poetry to install all project dependencies:

    poetry install
    
  4. Setup Releases

Main Commands

  • Run Tests
    Execute the test suite using pytest:

    poe test
    
  • Run Tests with Coverage
    Execute the test suite with coverage reporting:

    poe coverage
    

    and generate a report with poe coverage-report or poe coverage-html

  • Run Static Checks
    Perform static code analysis using both mypy and ruff:

    poe static-checks
    
  • Format Code
    Format your code using ruff:

    poe format
    

Note: All these checks are required to pass in order to create a release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_project_template_mala1180-1.0.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file python_project_template_mala1180-1.0.0.tar.gz.

File metadata

File hashes

Hashes for python_project_template_mala1180-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e53f9f9fc95c8b184b1f42525803ad5556222dcdfbaec8eca97c9f282f61c80b
MD5 1a915a2a89d9f7073a83f46292312e3a
BLAKE2b-256 2d6232ec0c14c843a32029ce207e3a1ae3496ac719282760e2d4ef253a81a26d

See more details on using hashes here.

File details

Details for the file python_project_template_mala1180-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for python_project_template_mala1180-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a995d90412f6f10db25685fef7e025f8b86efd7dd2d9e92d9e96906d56a8df31
MD5 9ffcc8c9f0ef92c016b8d5c3fe8d229d
BLAKE2b-256 86f3a82baa7dfd04dca0377a0a63e3e9798d4c42d144e24b0b37ba281f2f0144

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page