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.2

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.2
File Size Uploaded Provenance Actions
pforge_cli-0.1.2.tar.gz 34.9 kB With provenance Details for pforge_cli-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 78.1 kB

Release files / pforge_cli-0.1.2.tar.gz

Download URL pforge_cli-0.1.2.tar.gz
Size 34.9 kB
Tags Source
SHA-256 checksum
How to use checksums
cf0222eea6526ee843087e652e915673325ffb44306245bdaa98d6c951068ca4
BLAKE2b-256 checksum
How to use checksums
c485879a31801d9039c65da20a6413752211200c25e42d7ca296cf181fb736ad
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.2-py3-none-any.whl

Download URL pforge_cli-0.1.2-py3-none-any.whl
Size 43.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1eea4579b80a7a646a4d88373d53642560bb27c0e6450ffa29444d889f8b2cbc
BLAKE2b-256 checksum
How to use checksums
8902d1d8d31c44609ef01acd48986cd1eb6229d7efd03aecdddb9d9cd22c8051
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.2

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.2.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