Welcome to Serious Scaffold Pythonโ€™s documentation#

An evolving Python project template that covers the full development lifecycle.

CI CommitLint DevContainer Release Renovate Coverage PyPI PyPI - Python Version GitHub

pre-commit Checked with mypy Ruff Conventional Commits Pydantic v2 Serious Scaffold Python Open in Dev Containers

[!WARNING] Serious Scaffold Python is in the Alpha phase. Frequent changes and instability should be anticipated. Any feedback, comments, suggestions and contributions are welcome!

Serious Scaffold Python

Setting up a project often involves more than just establishing a basic project structure. It involves tasks like integrating GitHub Actions or GitLab CI/CD, configuring lint, test and documentation, as well as implementing settings, logging and other frequently used modules. Serious Scaffold Python streamlines this process. Powered by copier, bootstrapping a new Python project can be done with a single command. By answering a few questions, the project will be fully configured and ready for development. Furthermore, the project can be updated alongside the advancement of the template.

If you find this helpful, please consider sponsorship.

๐Ÿ› ๏ธ Features#

๐Ÿ”ง Prerequisites#

Certain system-level Python applications are needed and it is recommended to use pipx to install and run them in isolated environments. Refer to pipxโ€™s installation instructions here. Once pipx is set up, install the necessary tools using the following commands.

# Copier: Template rendering for projects.
pipx install copier==9.2.0
# PDM: A modern Python package and dependency manager supporting the latest PEP standards.
pipx install pdm==2.15.0
# Pre-commit: Automates Git hooks for code quality checks.
pipx install pre-commit==3.7.0

๐Ÿš€ Quickstart#

  1. Generate the project.

    copier copy gh:serious-scaffold/ss-python /path/to/project
    
  2. Navigate to the project directory and initialize a git repository.

    cd /path/to/project
    git init
    
  3. Set up the development environment.

    make dev
    
  4. Commit the initialized project.

    git add .
    git commit -m "Initialize from serious-scaffold."
    
  5. Thatโ€™s it! Feel free to focus on the coding within src folder.

๐Ÿ›ก Badge#

Badge for markdown:

[![Serious Scaffold Python](https://img.shields.io/endpoint?url=https://serious-scaffold.github.io/ss-python/_static/badges/logo.json)](https://serious-scaffold.github.io/ss-python)

Badge for restructuredtext:

.. image:: https://img.shields.io/endpoint?url=https://serious-scaffold.github.io/ss-python/_static/badges/logo.json
    :target: serious-scaffold.github.io/ss-python

It will look like this: Serious Scaffold Python

๐Ÿ“œ License#

MIT License, for more details, see the LICENSE file.

๐Ÿ”– Indices and tables#