Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "python-project-template",
"build": {
"context": ".",
"dockerfile": "Dockerfile"
},
"postCreateCommand": "bash scripts/setup.sh",
"remoteEnv": {
"MISE_GITHUB_TOKEN": "${localEnv:MISE_GITHUB_TOKEN}"
}
"name": "python-project-template",
"build": {
"context": ".",
"dockerfile": "Dockerfile"
},
"postCreateCommand": "bash scripts/setup.sh",
"remoteEnv": {
"MISE_GITHUB_TOKEN": "${localEnv:MISE_GITHUB_TOKEN}"
}
}
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,3 @@ jobs:
persist-credentials: false
- name: Run prek checks
uses: j178/prek-action@v2
with:
extra-args: --all-files --skip no-commit-to-branch
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ on:
- master
- main
paths:
- docs/**
- website/**
- .github/workflows/docs.yml
- zensical.toml
push:
branches:
- master
- main
paths:
- docs/**
- website/**
- .github/workflows/docs.yml
- zensical.toml

Expand Down
56 changes: 0 additions & 56 deletions .pre-commit-config.yaml

This file was deleted.

1 change: 1 addition & 0 deletions .shellcheckrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
external-sources=false
32 changes: 0 additions & 32 deletions .vscode/settings.json

This file was deleted.

11 changes: 11 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Repository instructions

Read the [development guide](docs/development.md) for setup, tooling, checks, and deployment. Before implementation, consult the [design index](docs/designs/SITEMAP.md) and inspect the affected source, configuration, and tests.

When registering the first design, replace the design index's empty-state note and fenced example with the real entry. Update the index in the same change when a design's title, path, summary, or status changes. Track review and implementation status separately.

Keep developer and agent guidance under `docs/` and in this file. The README and `website/` serve end users. Leave them untouched during internal documentation maintenance. Update them when the task calls for a change to end-user material.

Preserve unrelated changes and accepted requirements. Work within the task's authorization. Staging, committing, pushing, installing tools or hooks, and deploying require authorization from the task or existing project policy. Keep credentials and private content out of docs and logs.

Run the relevant checks, review files rewritten by tooling, and report what was verified. Update the affected internal guidance and design status when the evidence changes.
56 changes: 25 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,47 +1,41 @@
<div align="center">

<h1>python-project-template</h1>

<p>A Python tooling template with a Dev Container, repository checks, and a documentation site.</p>

<p>
<a href="https://hyp3r00t.github.io/python-project-template/">
<img alt="Docs" src="https://img.shields.io/badge/docs-online-0A66C2?style=for-the-badge" />
</a>
<a href="https://github.com/sponsors/HYP3R00T">
<img alt="Sponsor" src="https://img.shields.io/badge/sponsor-GitHub-EA4AAA?style=for-the-badge&logo=githubsponsors&logoColor=white" />
</a>
<a href="LICENSE">
<img alt="License" src="https://img.shields.io/badge/license-MIT-1F883D?style=for-the-badge" />
</a>
<a href="https://python-template.hyperoot.dev/"><img alt="Docs" src="https://img.shields.io/badge/docs-online-0A66C2?style=for-the-badge" /></a>
<a href="https://github.com/sponsors/HYP3R00T"><img alt="Sponsor" src="https://img.shields.io/badge/sponsor-GitHub-EA4AAA?style=for-the-badge&amp;logo=githubsponsors&amp;logoColor=white" /></a>
<a href="LICENSE"><img alt="MIT License" src="https://img.shields.io/badge/license-MIT-1F883D?style=for-the-badge" /></a>
</p>

<p>Production-ready Python devcontainer template focused on speed, consistency, and team workflows.</p>
<p><strong><a href="https://github.com/HYP3R00T/python-project-template/generate">Use this template →</a></strong></p>

</div>

## Features

- 🌍 Platform-independent development with Dev Containers
- 🧩 Host isolation: no local Python/toolchain setup required
- ⚙️ Auto bootstrap on container create (`scripts/setup.sh`)
- 🛠️ Runtime + task management with `mise`
- ⚡ Fast Python workflow with `uv`, `ruff`, `ty`, and `pytest`
- ✅ CI quality gates (lint, format, type checks, tests, coverage)
- 🔒 Pre-commit + commit-msg hooks with Conventional Commit support
- 🔁 Dependabot automation for dependencies and GitHub Actions
- 🤖 AI-agent-ready guidance via `AGENTS.md` and repo skills
- 📚 Docs pipeline with `zensical` + GitHub Pages deploy
- 🌍 An Ubuntu [Dev Container](https://containers.dev/) with Python and uv. The [setup script](scripts/setup.sh) installs the rest of the toolchain when the container is created.
- 🛠️ [mise](https://mise.jdx.dev/) manages tools and tasks inside the container or in a local shell. [EditorConfig](https://editorconfig.org/) shares formatting settings across compatible editors.
- ⚡ [uv](https://docs.astral.sh/uv/) initializes your Python project and manages dependencies, [Ruff](https://docs.astral.sh/ruff/) lints and formats Python, and [ty](https://docs.astral.sh/ty/) checks types.
- 🧹 [Tombi](https://tombi-toml.github.io/tombi/) checks TOML, [rumdl](https://rumdl.dev/) checks Markdown, [Biome](https://biomejs.dev/) checks web files, and [ShellCheck](https://www.shellcheck.net/) checks shell scripts.
- ✅ [Prek](https://prek.j178.dev/) runs the configured checks locally and in [GitHub Actions](https://docs.github.com/en/actions), including JSON and YAML validation.
- 🔒 Prek includes Git hooks for staged files and [Commitizen](https://commitizen-tools.github.io/commitizen/) checks commit messages against [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/). [Gitleaks](https://github.com/gitleaks/gitleaks) is available for manual secret scans.
- 🔁 [Dependabot](https://docs.github.com/en/code-security/concepts/supply-chain-security/dependabot-version-updates) is configured for monthly minor and patch updates to GitHub Actions and uv dependencies. A workflow can [auto-merge](https://docs.github.com/en/pull-requests/how-tos/merge-and-close-pull-requests/automatically-merging-a-pull-request) patch updates when repository settings allow it.
- 📚 A [Zensical](https://zensical.org/docs/get-started/) documentation site to customize. The included workflow can publish docs changes after you configure [GitHub Pages](https://docs.github.com/en/pages) to use GitHub Actions.
- 🤝 [GitHub issue forms and a pull request template](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/about-issue-and-pull-request-templates), plus repository guidance for coding agents in [`AGENTS.md`](AGENTS.md).

## Quick Start (Dev Container)
## Quick start

Prerequisites: Docker + VS Code with the Dev Containers extension.
1. Select **Use this template** on GitHub and clone the repository you create.

```bash
# Clone the template
git clone https://github.com/HYP3R00T/python-project-template.git
2. With [Docker](https://docs.docker.com/learn/) running, open your checkout in VS Code with the [Dev Containers extension](https://code.visualstudio.com/docs/devcontainers/containers) and choose **Dev Containers: Reopen in Container**.

# Enter the project folder
cd python-project-template
3. Once the container is ready, initialize the Python project from your new repository’s root.

# Open in VS Code
code .
```
```bash
uv init
```

Then run: `Dev Containers: Reopen in Container` from the VS Code Command Palette.
From there, choose your package layout, dependencies, and test suite. The [setup guide](https://python-template.hyperoot.dev/get-started/development-environment/) covers both the Dev Container and local development. The [testing guide](https://python-template.hyperoot.dev/how-to/add-tests/) shows how to add and run tests.
22 changes: 22 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"$schema": "https://biomejs.dev/schemas/2.6.9/schema.json",
"files": {
"includes": ["**", "!**/*.md", "!**/*.mdx", "!**/*.yaml", "!**/*.yml"]
},
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"formatter": {
"useEditorconfig": true,
"lineWidth": 120
},
"linter": {
"rules": { "preset": "recommended" }
},
"html": {
"experimentalFullSupportEnabled": true,
"formatter": { "enabled": true }
}
}
16 changes: 16 additions & 0 deletions docs/designs/SITEMAP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Feature designs

No feature designs are registered yet.

## Example entry

```markdown
## [Example feature](example-feature.md)

- **Date** — YYYY-MM-DD
- **Author** — Example contributor
- **Components** — Example component
- **Summary** — Describe the behavior covered by the design.
- **Review status** — Draft
- **Implementation state** — Not started
```
99 changes: 0 additions & 99 deletions docs/dev/contributing/authoring-documentation.md

This file was deleted.

17 changes: 0 additions & 17 deletions docs/dev/contributing/documentation-principles/index.md

This file was deleted.

This file was deleted.

Loading
Loading