Skip to main content

ShipGate — policy-first quality gates for Python projects

PyPI version Python versions License: MIT Documentation

One policy, one catalog, three commands — plus refactor.
Linters, formatters, scanners, metric gates, and structural Python rules — without hand-rolled CI glue.

Documentation · Quick start · Usage guide · Changelog · Contributing


You start a Python project and quickly realize you need a pile of tools — linters, formatters, type checkers, secret scanners — each with its own config, install story, and CI glue. Before you write much code, you are maintaining a toolchain.

ShipGate replaces that sprawl with one project policy file and a metadata-driven catalog. Pick a suite once; run the same three commands locally, in CI, and in pre-commit. The wheel also ships refactor — AST rules for structural cleanup alongside catalog gates.

Quick start

Requires Python 3.11–3.14 (prefer 3.13 for the full suite). On 3.14, Semgrep and deadcode skip with an explicit requires_python message instead of crashing.

pip install shipgate              # or: uv add --dev shipgate
shipgate init                     # scaffold .shipgate/ policy + configs
shipgate install                  # install tools for your suite
shipgate format --target .        # apply formatters
shipgate check --target .         # report-only quality gates
shipgate refactor check .          # structural Python rules (JSON hits)

Optional: pip install 'shipgate[server]' then shipgate serve --open for the report UI. See Refactor for fix, list, explain, and optional rule packs.

Documentation

This README is the shortest path to a working project. For suites, policy, error formats, CI, gates, and the full tool catalog, use the documentation site — start at Quick start.

Guide Contents
Quick start Init → install → format → check → refactor
Usage Suites, error formats, CI, pre-commit, report UI
Refactor Structural Python rules (check, fix, list, explain)
Configuration Policy files, scopes, Radon metric gates
Tools Bundled catalog and project extensions
Architecture Layers and design decisions
Check flow Tool YAML → shipgate check

Contributing

See CONTRIBUTING.md. Maintainer notes live locally in AGENTS.md (not committed).

License

MIT — see LICENSE.

Metadata

Release files for shipgate 0.1.13

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

Source distribution (sdist)

Source distribution for shipgate 0.1.13
File Size Uploaded Provenance Actions
shipgate-0.1.13.tar.gz 253.6 kB Without provenance Details for shipgate-0.1.13.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for shipgate 0.1.13
File Interpreter ABI Platform Actions
shipgate-0.1.13-py3-none-any.whl Python 3 none any Details for shipgate-0.1.13-py3-none-any.whl

Total release size: 709.8 kB

Release files / shipgate-0.1.13.tar.gz

Download URL shipgate-0.1.13.tar.gz
Size 253.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7daa5a7b689d1b7a9a899d86e6142599f48753e4b9d3d4df34a783f302ccf0fe
BLAKE2b-256 checksum
How to use checksums
6657e03954e17d39548f32cb5a82e29b6ffadf76e784f2087f97a4b7cd90e368
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / shipgate-0.1.13-py3-none-any.whl

Download URL shipgate-0.1.13-py3-none-any.whl
Size 456.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd31b64777c67c3d4203445377bfe68477b00588eb305c451524d13a40e382c7
BLAKE2b-256 checksum
How to use checksums
353c563ffe08fcc3e66853e7558173d4d254b2387ad34ca95c0a68e61ff1b4b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for shipgate 0.1.13

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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