smithery.ai

python-quality-gate

Run the Python quality gate (format, lint, types, tests) and iterate until clean. Use after implementing or refactoring Python code.

First seen Apr 6, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,460 B
  • docs SUMMARY.md 159 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Python quality gate workflow

Use this skill when:

  • You changed Python code and want it to pass formatting/lint/type/tests.
  • You're preparing a PR/release and need a consistent "done" checklist.

Steps

  1. Locate project tooling config
  • Check for pyproject.toml, ruff.toml, setup.cfg, mypy.ini, pytest.ini.
  • Follow repo config over default tool flags.
  1. Format
  • Run: python -m black .
  • If Black isn't installed, propose adding it to the dev environment and explain how to install.
  1. Lint
  • Run: python -m ruff check . --fix
  • If Ruff isn't installed, propose adding it and re-run.
  1. Types (only if configured/expected)
  • If mypy.ini or mypy config exists, run: python -m mypy .
  • Fix type errors by improving annotations (avoid weakening to Any unless unavoidable).
  1. Tests
  • Run: python -m pytest -q
  • If failures: fix implementation first; only adjust tests if the test is wrong or spec changed.
  1. Exit criteria
  • No formatting diffs from Black.
  • Ruff clean (or only allowed ignores).
  • Mypy clean (if used).
  • Pytest passing.

Common fixes

  • Replace == None with is None.
  • Prefer Pathlib over manual path string ops when appropriate.
  • Tighten return types and avoid ambiguous Optional behavior.