quality

Automate Python code quality validation with Ruff, BasedPyright, Bandit, and pytest.

Updated Nov 24, 2025
One-click install
npx skills add https://github.com/ByronWilliamsCPA/.claude --skill quality-byronwilliamscpa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: quality
Source: https://github.com/ByronWilliamsCPA/.claude/tree/main/.claude/skills/quality
Command: npx skills add https://github.com/ByronWilliamsCPA/.claude --skill quality-byronwilliamscpa

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manual code quality checks are inconsistent, time-consuming, and often miss critical issues like style violations, type errors, and security flaws, leading to technical debt and avoidable production bugs in Python projects.

Core Features & Use Cases

  • Multi-tool Quality Validation: Integrates Ruff for formatting and linting, BasedPyright for strict type checking, Bandit for security scanning, and pytest for test coverage validation.
  • Flexible Scope Control: Run targeted checks for formatting, linting, or type checking alone, or execute a full pre-commit validation suite for comprehensive quality assurance.
  • Use Case: A development team can use this skill to enforce consistent code standards across all contributions, automatically fix common style issues, and block non-compliant code from being merged via pre-commit hooks.

Quick Start

Use the quality skill to run full code quality checks on your Python project to catch formatting, linting, and type errors early.

Frequently Asked Questions about quality

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Python code quality checks for formatting, linting, and type errors?

You can automate Python code quality checks by integrating Ruff for formatting and linting, BasedPyright for strict type checking, and Bandit for security scanning across your local development and CI/CD pipelines.

What is the best way to enforce PEP 8 compliance and strict type checking in a pre-commit hook?

Enforcing PEP 8 compliance and strict type checking in a pre-commit hook requires running a full validation suite with Ruff and BasedPyright to automatically block non-compliant code from being merged.

Can I run targeted static analysis for just linting or type checking alone in Python?

Yes, you can run targeted static analysis for just linting or type checking alone. The skill provides flexible scope control to execute specific checks independently or run a comprehensive validation suite.

Does Ruff work with BasedPyright for automated remediation of common Python code quality issues?

Ruff works with BasedPyright to provide automated remediation of common Python code quality issues, combining Ruff's automated style fixing with BasedPyright's strict type validation to catch defects early.

Why should I use automated static analysis instead of manual code quality checks for Python projects?

Automated static analysis replaces manual code quality checks because manual validation is inconsistent, time-consuming, and often misses critical style violations, type errors, and security flaws leading to technical debt.

How do I integrate security scanning and test coverage validation into a CI/CD pipeline for Python?

You integrate security scanning and test coverage validation into a CI/CD pipeline by configuring the skill to run Bandit for security scanning and pytest for test coverage alongside standard formatting and linting checks.