Skip to main content

My template for creating quick python scripts.

Project description

Pyboot

This is a simple Python application template for Python projects designed to streamline your development workflow.

Features include:

  • Dependency management with Poetry: https://python-poetry.org/: Poetry provides a powerful way to manage project dependencies, creating isolated environments and handling version conflicts.
  • Code formatting with Black: https://black.readthedocs.io/en/stable/: Black enforces consistent, opinionated code formatting, enhancing readability and collaboration.
  • Linting with Ruff: [invalid URL removed]: Ruff helps find potential bugs, stylistic issues, and maintain a clean codebase. Unit testing with Pytest: https://docs.pytest.org/en/latest/: Pytest provides a flexible and popular framework for writing and running tests that ensure your code's correctness.
  • Changelog management with towncrier: https://towncrier.readthedocs.io/en/latest/: Maintain well-structured changelogs to track project changes.
  • Automation script management with Node and/or Python: Streamline common tasks (e.g., building, testing, deploying) with customizable scripts.
  • Pre- and post-commit sanity checks with Husky: https://typicode.github.io/husky/: Enforce quality standards at commit time to catch issues early.
  • Documentation creation with MkDocs: https://www.mkdocs.org/: Easily create beautiful technical documentation for your project.

Setup

  1. Create a copy of the template
gh repo create happy-bog --template git@github.com:evannagle/whatdido.git  --private --clone
  1. Install dependencies
cd happy-bog

make install
  1. Rename the app
make rename
  1. Run the app
make app

Which should output:

🤖 Cleaning up
rm -rf __pycache__ .pytest_cache .coverage .mypy_cache .tox .eggs .venv

🤖 Building the project
poetry install
Installing dependencies from lock file

No dependencies to install or update

Installing the current project: whatdido (0.1.0)

🤖 Running the app
poetry run whatdido
42
  1. Test the app
make test
  1. Review test coverage
make coverage
  1. Globalize the command for use from your command line
make globalize

happy-bog

> 42

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

whatdido-0.1.0.tar.gz (5.2 kB view hashes)

Uploaded Source

Built Distribution

whatdido-0.1.0-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

Supported by

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