Python Package

Quality Gate

Setting up ManifestGuard quality thresholds that block builds on regressions.

Early Access: Until 2026-12-31

Quality gates ensure that mgpy does not only observe quality but also protects decisions. A gate without a clear threshold model only creates noise.

Key points

  • CLI: On Windows the examples use the recommended py -3.12 -m <module> ... form (for example py -3.12 -m manifestguard ...). On Linux/macOS this usually maps to python3.12 -m ....
  • Global thresholds and test-specific overrides belong in a traceable manifestguard.json.
  • Expensive checks should only run after the baseline signals pass the default gate.
  • A good gate is strict enough for regressions without randomly blocking productive work.

Recommended mgpy workflow

  1. Measure the current error and warning levels and derive realistic starting thresholds.
  2. Enable the gate early in CI and tighten it step by step later.
  3. Whenever rules change, document whether the adjustment reflects product reality or just tooling noise.

Quick start

py -3.12 -m manifestguard check --extended
py -3.12 run_manifestguard.py --ci --report .manifestguard/manifestguard-report.json
py -3.12 -m manifestguard baseline --list

Requirements

Columns
Installation interpreter
Python 3.12 + pip
Recommended default path for installation and CLI calls.
Project target versions
Python 3.8 to 3.12
These are the project/runtime targets mgpy can analyze.
mgpy runtime
Validated on Python 3.10 to 3.13
The tool runtime itself is covered for this range.
CLI invocation
Windows: py -3.12 -m manifestguard
Linux/macOS usually maps to python3.12 -m manifestguard.
Runtime packages
tomlkit, click, pydantic, packaging, watchdog, PyNaCl, rfc8785
tomli is only added for Python below 3.11.
Offline / wheel install
Optional via pip --no-index or wheel
Useful for air-gapped or approved bundle distribution paths.