No description
|
|
||
|---|---|---|
| .devcontainer | ||
| .forgejo/workflows | ||
| benchmarks | ||
| docs | ||
| examples | ||
| features | ||
| robot | ||
| scripts | ||
| src/boilerplate | ||
| typings | ||
| .bumpversion.cfg | ||
| .cz-config.js | ||
| .cz.json | ||
| .dockerignore | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| .python-version | ||
| asv.conf.json | ||
| ATTRIBUTIONS.md | ||
| behave.ini | ||
| CHANGELOG.md | ||
| CODE_OF_CONDUCT.md | ||
| CONTRIBUTING.md | ||
| CONTRIBUTORS.md | ||
| Dockerfile | ||
| LICENSE | ||
| mkdocs.yml | ||
| NOTICE | ||
| noxfile.py | ||
| pyproject.toml | ||
| pyrightconfig.json | ||
| README.md | ||
| robot.cfg | ||
Python Project Boilerplate
Start new Python applications quickly with a minimal, well-structured foundation.
Features
- Python package layout under
src/ pyproject.tomlwith placeholders for metadata and dependencies- Ruff formatting & linting
- Nox automation for format, lint, type-check, tests, docs, build
- MkDocs configured for documentation
- Ready-made dev container configuration
Quick Start
# clone the template
# replace <your-org> and <project-name>
git clone https://example.com/<your-org>/<project-name>.git
cd <project-name>
# optional: rename package directory under src/
# create virtual environment and install dependencies
python -m venv .venv
source .venv/bin/activate
pip install -e .[dev]
# run quality checks
nox -s format lint typecheck tests
# run the sample CLI
python -m boilerplate
Replace Placeholders
Update the following files with real project information:
pyproject.tomlmkdocs.ymldocs/index.mdREADME.md
Documentation
nox -s docs
nox -s serve_docs
Tests
Simple placeholder tests live in tests/.
Run them with nox -s tests or pytest.