py-quality-setup
Python Quality Tooling Setup
Configure comprehensive linting and type checking for Python 3.13 projects following Engineering Charter standards.
Objectives
- Configure ruff for linting and formatting
- Configure mypy for strict type checking
- Configure basedpyright for additional type analysis
- Ensure all tools target Python 3.13 or later
- Add tools to dev dependencies
Required Tools
Add to [dependency-groups] dev: "ruff", "mypy", "basedpyright", "pytest", "pytest-cov"
- ruff: Fast linter and formatter (Rust-based, replaces black, isort, flake8)
- mypy: Standard Python type checker
- basedpyright: Enhanced Pyright fork with additional type analysis
More from l-mb/python-refactoring-skills
py-refactor
Orchestrate comprehensive Python refactoring - coordinates security, complexity, testing, code health, and modernization skills to systematically improve code quality.
27py-complexity
Reduce cyclomatic and cognitive complexity in Python code. Break down complex functions, simplify control flow, and track complexity trends over time.
19py-code-health
Detect and remove dead code, duplicate code, and unused imports. Consolidate similar code patterns into parametrized functions.
18py-modernize
Modernize Python codebases - migrate pip to uv, upgrade syntax to Python 3.13+, replace deprecated patterns, and update tooling to current best practices.
12py-test-quality
Measure and improve test coverage and test suite quality using code coverage and mutation testing. Ensures tests actually catch bugs.
11py-security
Security vulnerability detection and remediation for Python codebases. Identifies SQL injection, hardcoded secrets, weak cryptography, and other OWASP vulnerabilities.
9