Skip to content

cgrinaldi/python-starter

Repository files navigation

Python Starter

This is a Python project skeleton that will you get up and running quickly. It sets up the following:

Prior to every commit, the pre-commit hooks will run unit tests, format the code, and perform type checking.

Project Setup

This starter project assumes you are using pipenv to manage virtual environments and project dependencies.

1. Install project dependencies:

pipenv install --dev

2. Setup project to use pre-commit:

pipenv run pre-commit install

3. Install additional project dependencies:

pipenv install [package]

Use the --dev flag if needed.

4. Run tests:

make test

Tests will be automatically run prior to every commit.

Additional Notes

In addition to autoformatting the code via Black and flake8 for each commit, it does the following:

  • Runs the unit tests
  • Runs mypy for type checking

If you would like to disable this, edit this file.

About

A simple Python project skeleton

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published