A Python project template covering the entire development lifecycle with various integrations, configurations and modules.
Project description
Serious Scaffold Python
A Python project template covering the entire development lifecycle with various integrations, configurations and modules.
[!WARNING] Serious Scaffold Python is in the Alpha phase. Frequent changes and instability should be anticipated. Any feedback, comments, suggestions and contributions are welcome!
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
- Project setup and template update with
copier. - Manage dependencies and virtual environments with
pdm. - Version the package using dynamic SCM tag with
pdm-backend. - Automate Git hooks with pre-commit hooks and local linters.
- Lint with
mypy,ruff, andtoml-sort. - Test with
pytestandcoveragefor threshold and reports. - Document with
sphinx, thefurotheme, and mypy/coverage reports. - Continuous Integration with GitHub Actions and GitLab CI/CD.
- Versioned documentation with Read the Docs integration.
- Develop Command Line Interfaces with
typer. - Manage configurations with
pydantic-settings. - Centralize common actions with a unified Makefile.
- VSCode settings with recommended extensions.
🔧 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
# PDM: A modern Python package and dependency manager supporting the latest PEP standards.
pipx install pdm
# Pre-commit: Automates Git hooks for code quality checks.
pipx install pre-commit
🚀 Quickstart
-
Generate the project.
copier copy gh:serious-scaffold/ss-python /path/to/project
-
Navigate to the project directory and initialize a git repository.
cd /path/to/project git init
-
Set up the development environment.
make dev -
Commit the initialized project.
git add . git commit -m "Initialize from serious-scaffold."
-
That's it! Feel free to focus on the coding within
srcfolder.
🛡 Badge
Badge for markdown:
[](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
📜 License
MIT License, for more details, see the LICENSE file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ss_python-0.0.45.tar.gz.
File metadata
- Download URL: ss_python-0.0.45.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.12.3 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7c934bfb6cefc4ca53ec6c6111e25097f8b8fd51490b01533e565a61dffb3cc
|
|
| MD5 |
1ff1c98aa3f4f2eba206e85ccf1abb8c
|
|
| BLAKE2b-256 |
a62ad12ff47f6d7c341338766d1265435a001f82161637ec7c188e3b371b0128
|
File details
Details for the file ss_python-0.0.45-py3-none-any.whl.
File metadata
- Download URL: ss_python-0.0.45-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.12.3 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07c7477865fcb570cae33467bfcfbccc70461ee602685e5ea33ea162b714b3e8
|
|
| MD5 |
83fbdc492ede9b39b426797382c049bd
|
|
| BLAKE2b-256 |
2512fbb644a48d408a9323e3ca8535868929183f1b539d8e5f75e3b404171ca2
|