Py Test Quality

🌐Community
by l-mb · vlatest · Repository

Analyzes Python code using pytest to identify bugs, test coverage gaps, and style violations for improved quality.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add py-test-quality npx -- -y @trustedskills/py-test-quality
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "py-test-quality": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/py-test-quality"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

The py-test-quality skill allows AI agents to execute pytest test suites and report on code quality. It can identify failing tests, analyze coverage reports, and provide insights into potential bugs or areas for improvement in Python codebases. This skill helps ensure that refactored code maintains its functionality and meets established quality standards.

When to use it

  • Automated Testing: After a code refactoring task is completed, run the test suite to verify changes haven't introduced regressions.
  • Coverage Analysis: Determine how much of your codebase is covered by existing tests.
  • Bug Identification: Quickly pinpoint and report failing tests after modifications or during debugging.
  • Quality Gatekeeping: Integrate into a CI/CD pipeline to prevent low-quality code from being merged.

Key capabilities

  • Executes pytest test suites.
  • Generates coverage reports.
  • Identifies and reports on failing tests.
  • Provides insights based on test results.

Example prompts

  • "Run the pytest suite for this Python file."
  • "Generate a code coverage report after running the tests."
  • "Show me any failing tests in the current codebase."

Tips & gotchas

  • Requires a working pytest installation within the environment.
  • The agent needs access to the project's test suite configuration files (e.g., pytest.ini, setup.cfg).

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
l-mb
Installs
4

🌐 Community

Passed automated security scans.