Skip to main content

Project Forge (pforge / pforge-cli)

Repository-neutral engineering workflow CLI for quality gates, conventional commits, releases, and versioning.

Overview

Project Forge standardizes common Python repository engineering workflows into a single standalone CLI without copying scripts from repository to repository:

  • Multi-engine Quality Gate: Fast (<2s) and Full diagnostic checks across Ruff (lint & format), Mypy, Pyright, Pylint, and Pytest.
  • Native Standard-Version Replacement: Pure Python SemVer bumper (pforge bump) calculating increments from Conventional Commits, updating project files, generating CHANGELOG.md, and tagging releases.
  • Conventional Commit Automation: Grouped atomic commits with repository-neutral scope inference and interactive wizard (pforge commit).
  • Quality Hooks: Project-neutral Git hooks (pre-commit and pre-push) calling pforge quality.
  • Changelog & GitHub Workflows: Single-source changelog parsing, pull request creation with embedded quality tables, and GitHub release publication.
  • Publishing & Diagnostics: Clean uv build and uv publish orchestration, and non-destructive doctor and status commands.

Installation

# Using uv (recommended)
uv add --dev pforge-cli

# Using pip
pip install pforge-cli

CLI Usage

Diagnostics & Status

pforge status       # High-level dashboard snapshot of repository state
pforge doctor       # Diagnostic environment verification of tools and configs

Quality Gate

pforge quality --fast       # Fast Tier (<2s): Ruff check, Ruff format check, Mypy
pforge quality --fast --fix # Auto-apply safe Ruff lint & format fixes
pforge quality              # Full Tier: Ruff, Mypy, Pyright, Pylint, Pytest
pforge quality --export all # Export structured audit reports to outputs/ (CSV & JSON)

Version Bumping & Changelog

pforge bump --dry-run                 # Preview next version and changelog entry
pforge bump                           # Automatically detect bump type and update files
pforge bump --release-as minor        # Explicitly bump minor (or patch, major)
pforge bump --prerelease rc           # Bump with prerelease identifier

Automated Conventional Commits

pforge commit --preview      # Preview grouped atomic conventional commits
pforge commit -i             # Interactive commit wizard with diff inspection
pforge commit --run          # Execute atomic commits immediately

Git Quality Hooks

pforge hooks install        # Install pre-commit and pre-push quality hooks
pforge hooks status         # Check installation and core.hooksPath status
pforge hooks uninstall      # Clean hooks and unset core.hooksPath

Pull Requests & Releases

pforge pr preview           # Preview PR title, notes, and Quality Gate table
pforge pr create            # Create/update PR on GitHub via gh CLI
pforge release preview      # Preview release notes for latest version
pforge release publish      # Publish release to GitHub via gh CLI

PyPI Publishing

pforge publish --dry-run    # Verify quality, clean dist/, build with uv build
pforge publish              # Build packages and upload to PyPI using token

Configuration (pyproject.toml)

Project Forge works with zero configuration for standard Python repositories. Custom settings can be optionally configured under [tool.project-forge]:

[tool.project-forge]
source = ["src"]
tests = ["tests"]
changelog = "CHANGELOG.md"

[tool.project-forge.git]
development_branch = "dev"
default_branch = "main"

[tool.project-forge.quality]
fast = ["ruff-check", "ruff-format", "mypy"]
full = ["ruff-check", "ruff-format", "mypy", "pyright", "pytest"]

[tool.project-forge.commits]
header_max_length = 72

[tool.project-forge.bump]
tag_prefix = "v"
files = ["pyproject.toml", "src/**/__init__.py"]

[tool.project-forge.docs]
require_module_docstrings = true
require_package_ownership = false

Development & Testing

# Sync environment
uv sync

# Run test suite
uv run pytest tests/ -v

# Run linters and typecheckers
uv run ruff check .
uv run ruff format --check src/ tests/
uv run mypy src
uv run pyright

License

GPL-3.0-or-later

Metadata

Release files for pforge-cli 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pforge-cli 0.1.0
File Size Uploaded Provenance Actions
pforge_cli-0.1.0.tar.gz 33.2 kB With provenance Details for pforge_cli-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pforge-cli 0.1.0
File Interpreter ABI Platform Actions
pforge_cli-0.1.0-py3-none-any.whl Python 3 none any Details for pforge_cli-0.1.0-py3-none-any.whl

Total release size: 74.6 kB

Release files / pforge_cli-0.1.0.tar.gz

Download URL pforge_cli-0.1.0.tar.gz
Size 33.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0d0caecec7d35cd8b5b209eaad1fc0b2f1f04c41992c34c39e9c01ed5b340154
BLAKE2b-256 checksum
How to use checksums
cdf08c185327f14a81f3ae8422bffc624cdfd8cc63b08fbb3bca2075aa21a992
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / pforge_cli-0.1.0-py3-none-any.whl

Download URL pforge_cli-0.1.0-py3-none-any.whl
Size 41.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4fefc3354d51552978e4fc3102ba656e02b8c0132be9768e3b80841a5e6afbc7
BLAKE2b-256 checksum
How to use checksums
ad846aa5cd8cae253904d585cc0de9dd6427199ff24001c4e7e37593f59ccbe0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for pforge-cli 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pforge_cli-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page