flask-quality

Enforce unit tests, type checks, and formatting in Flask projects.

8|2|Updated Oct 28, 2025
One-click install
npx skills add https://github.com/morodomi/tdd-skills --skill flask-quality
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: flask-quality
Source: https://github.com/morodomi/tdd-skills/tree/main/plugins/tdd-flask/skills/flask-quality
Command: npx skills add https://github.com/morodomi/tdd-skills --skill flask-quality

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Flask projects often suffer from inconsistent quality checks, leading to flaky tests and unclear CI feedback.

Core Features & Use Cases

  • Unit tests: Runs tests with pytest-flask to ensure endpoint behavior.
  • Static typing: Enforces type correctness with mypy.
  • Code formatting: Applies Black and isort to keep code style consistent.
  • Use Case: On a Flask app with multiple blueprints, run quality checks as part of PR CI to catch regressions early.

Quick Start

To enable the quality checks for a Flask project, install the required tools and run the test suite.

Frequently Asked Questions about flask-quality

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

FAQPage Schema
How do I run Flask quality checks for unit tests and code formatting?

Flask quality checks enforce endpoint behavior and code style by running pytest-flask for unit tests, mypy for static typing, and Black and isort for code formatting across your project.

What is the best way to enforce strict typing and formatting in a Flask CI pipeline?

Enforcing strict typing and formatting in Flask CI requires running mypy for type correctness and Black and isort for style consistency, catching regressions early across multiple blueprints.

Can I use pytest-flask to test endpoints across multiple Flask blueprints?

Yes, pytest-flask supports testing endpoint behavior across multiple Flask blueprints, allowing you to run unit tests locally or in CI to verify route functionality and catch regressions.

Does mypy work with Flask projects to catch type errors before deployment?

Yes, mypy enforces type correctness in Flask projects, satisfying requirements for strict typing by validating type hints during local development or CI workflows before deployment.

Why does my Flask CI pipeline have flaky tests and inconsistent formatting feedback?

Flask CI pipelines produce flaky tests and inconsistent feedback when quality checks are fragmented; unifying pytest-flask, mypy, Black, and isort standardizes testing and formatting output.

Do I need Black and isort to keep Flask code style consistent?

Yes, Black and isort apply consistent code formatting and import sorting across Flask workflows, ensuring that style remains uniform throughout development and CI processes.