- Notifications
You must be signed in to change notification settings - Fork121
Python best practices project cookiecutter 🍪
License
NotificationsYou must be signed in to change notification settings
sourcery-ai/python-best-practices-cookiecutter
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Best practicescookiecutter template as described in thisblogpost.
- Testing withpytest
- Formatting withblack
- Import sorting withisort
- Static typing withmypy
- Linting withflake8
- Git hooks that run all the above withpre-commit
- Deployment ready withDocker
- Continuous Integration withGitHub Actions
# Install pipx if pipenv and cookiecutter are not installedpython3 -m pip install pipxpython3 -m pipx ensurepath# Install pipenv using pipxpipx install pipenv# Use cookiecutter to create project from this templatepipx run cookiecutter gh:sourcery-ai/python-best-practices-cookiecutter# Enter project directorycd<repo_name># Initialise git repogit init# Install dependenciespipenv install --dev# Setup pre-commit and pre-push hookspipenv run pre-commit install -t pre-commitpipenv run pre-commit install -t pre-push
About
Python best practices project cookiecutter 🍪
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors6
Uh oh!
There was an error while loading.Please reload this page.