RepoPilot

pallets/flask

The Python micro framework for building web applications.

Healthy

Healthy across all four use cases

HealthyDependency

Permissive license, no critical CVEs, actively maintained — safe to depend on.

HealthyFork & modify

Has a license, tests, and CI — clean foundation to fork and modify.

HealthyLearn from

Documented and popular — useful reference codebase to read through.

HealthyDeploy as-is

No critical CVEs, sane security posture — runnable as-is.

  • Single-maintainer risk — top contributor 90% of recent commits
  • In RepoPilot's curated trusted-corpus (29 projects)
  • Last commit 2w ago
  • 10 active contributors
  • BSD-3-Clause licensed
  • CI configured
  • Tests present

Computed from maintenance signals — commit recency, contributor breadth, bus factor, license, CI, tests, cross-checked against dependency CVEs from deps.dev and OpenSSF Scorecard

Informational only. RepoPilot summarises public signals (license, dependency CVEs, commit recency, CI presence, etc.) at the time of analysis. Signals can be incomplete or stale. Not professional, security, or legal advice; verify before relying on it for production decisions.

Want this for your own repo?

Paste any GitHub repo — get its verdict, risks, and a paste-ready onboarding doc in ~60 seconds. Free, no sign-up.

Embed the "Healthy" badge

Paste into your README — live-updates from the latest cached analysis.

Variant:
RepoPilot: Healthy
[![RepoPilot: Healthy](https://repopilot.app/api/badge/pallets/flask)](https://repopilot.app/r/pallets/flask)

Paste at the top of your README.md — renders inline like a shields.io badge.

Preview social card

This card auto-renders when someone shares https://repopilot.app/r/pallets/flask on X, Slack, or LinkedIn.

Ask AI about pallets/flask

Grounded in the actual source code. Pick a starter question or write your own.

Or write your own question →

Onboarding doc

Onboarding: pallets/flask

Generated by RepoPilot · 2026-06-27 · Source

🎯Verdict

GO — Healthy across all four use cases

  • In RepoPilot's curated trusted-corpus (29 projects)
  • Last commit 2w ago
  • 10 active contributors
  • BSD-3-Clause licensed
  • CI configured
  • Tests present
  • ⚠ Single-maintainer risk — top contributor 90% of recent commits

<sub>Computed from maintenance signals — commit recency, contributor breadth, bus factor, license, CI, tests, cross-checked against dependency CVEs from deps.dev and OpenSSF Scorecard</sub>

TL;DR

Flask is a lightweight WSGI-based Python web framework that wraps Werkzeug and Jinja2 to enable rapid development of web applications from simple scripts to complex systems. It prioritizes developer choice and minimal constraints, allowing developers to use their preferred tools and libraries while providing core routing, request/response handling, and templating out of the box. Flask follows a monolithic structure: the src/flask/ directory (inferred from Python language prominence) contains core modules for application factory (app.py-like), blueprints, routing, and request context handling. Documentation lives in docs/ with deployment guides (docs/deploying/) and API references. Tests and CI configuration indicate a test-driven maintenance approach. The .devcontainer/devcontainer.json enables reproducible local development environments.

👥Who it's for

Python developers building web applications who want a micro-framework that doesn't impose project structure or force heavy dependencies. It's used by startups prototyping MVPs, enterprises building service APIs, and teams teaching web development who need a framework with a gentle learning curve.

🌱Maturity & risk

Flask is production-ready and one of the most popular Python web frameworks. The codebase shows active maintenance with CI/CD workflows (.github/workflows/ contains tests.yaml, publish.yaml, pre-commit.yaml), comprehensive documentation in docs/, and a structured release process visible in CHANGES.rst. However, being mature also means breaking changes are rare and release cycles are measured.

Dependency risk is very low: Flask's core dependencies are minimal (Click for CLI, Werkzeug for WSGI, Jinja2 for templating, itsdangerous for security primitives, blinker for signals). The repo is under the established Pallets organization with strong governance. Main risk is that Flask deliberately stays lightweight—complex features require community extensions, which may introduce version compatibility issues if not maintained.

Active areas of work

The stable branch shows ongoing maintenance with pre-commit checks, zizmor security scanning, and automated publishing workflows. Based on the file structure showing both .readthedocs.yaml and comprehensive docs/, documentation is being actively kept current. The presence of async-await.rst suggests recent work integrating async/await support into the framework.

🚀Get running

git clone https://github.com/pallets/flask.git
cd flask
python -m venv venv
source venv/bin/activate  # or venv\Scripts\activate on Windows
pip install -e .
pip install -r requirements/dev.txt  # or dev-requirements if present

Daily commands:

# Create a minimal app (app.py)
from flask import Flask
app = Flask(__name__)

@app.route('/')
def hello():
    return 'Hello, World!'

# Run it
flask --app app run
# Or with debug mode
flask --app app run --debug

🗺️Map of the codebase

  • src/flask/app.py — Core Flask application class and main entry point for all request handling and lifecycle management.
  • src/flask/wrappers.py — Request and Response wrapper classes that extend Werkzeug to provide Flask-specific context and utilities.
  • src/flask/ctx.py — Application and request context management, critical for understanding Flask's execution model and thread-local storage.
  • src/flask/routing.py — URL routing system and rule handling that maps HTTP requests to view functions and blueprints.
  • src/flask/blueprints.py — Blueprint implementation for modular application organization and reusable view collections.
  • pyproject.toml — Project metadata, dependencies (Werkzeug, Jinja2, Click), and package configuration defining Flask's minimal footprint.

🧩Components & responsibilities

  • Flask App (core/app.py) (Python, WSGI) — WSGI application entrypoint, request dispatch orchestration, and configuration management.
    • Failure mode: Unhandled exceptions during dispatch crash the request; misconfigured blueprints silently fail to route.
  • Router (routing.py) (Werkzeug Rule/Map) — URL rule compilation, matching incoming requests to endpoints, and URL reversal for link generation.
    • Failure mode: Ambiguous or conflicting URL rules cause 404s or unexpected route matches.
  • Request/Response Wrappers (wrappers.py) (Werkzeug, Python) — Extend Werkzeug Request/Response with Flask conveniences (session, g, json helpers).
    • Failure mode: Misconfigured request parsing (JSON, form data) causes silent data loss or type errors.
  • Context Management (ctx.py) (Python threading.local) — Push/pop RequestContext and AppContext to thread-local storage for access via globals.
    • Failure mode: Context leaks in async/greenlet scenarios; unclean teardown leaves stale globals.
  • Jinja2 Integration (templating.py) (Jinja2) — Configure and manage the Jinja2 environment, template loading, and rendering.
    • Failure mode: Missing or misconfigured loaders prevent templates from being found; syntax errors in templates raise TemplateError.
  • Signal Dispatch (signals.py) (Blinker) — Send before_request, after_request, and teardown signals to registered handlers.
    • Failure mode: Exceptions in signal handlers abort the request; weak signal references can cause handlers to be garbage-collected prematurely.
  • Blueprint System (blueprints.py) (Python classes) — Register modular feature collections into the main app with url_prefix and static folder isolation.
    • Failure mode: Duplicate blueprint names or url_prefix collisions cause routing conflicts.

🔀Data flow

  • WSGI ServerFlask App.__call__() — HTTP request environ and start_response callable passed to Flask's WSGI interface.
  • Flask AppRequestContext — App creates RequestContext from environ and pushes it to thread-local storage.
  • RouterView Function — URL rule matching returns endpoint and URL arguments passed to the view.
  • View FunctionJinja2 — View calls render_template() which loads and renders a Jinja2 template with context variables.
  • View/Jinja2Response Object — View return value (string, dict, Response) is wrapped in a Response with status, headers, and body.
  • Flask AppWSGI Server — Response is converted to (status_string, headers_list, body_iterable) for WSGI start_response().

🛠️How to make changes

Add a New Route/View

  1. Create a view function and decorate with @app.route() (src/flask/app.py)
  2. Define the route path and HTTP methods in the decorator (src/flask/routing.py)
  3. Return response data (string, dict, or Response object) from the view function (src/flask/wrappers.py)

Create a Blueprint for Modular Features

  1. Instantiate Blueprint with a name and module identifier (src/flask/blueprints.py)
  2. Register routes using @blueprint.route() decorator (src/flask/blueprints.py)
  3. Register the blueprint with the app using app.register_blueprint() (src/flask/app.py)

Register Error Handler

  1. Define a handler function for a specific exception class (src/flask/errorhandler.py)
  2. Register it with @app.errorhandler(ExceptionClass) (src/flask/app.py)
  3. Return a response or error page from the handler (src/flask/wrappers.py)

Add Before/After Request Hooks

  1. Register a function with @app.before_request or @app.after_request (src/flask/app.py)
  2. Access request context (request, g) to modify behavior or state (src/flask/ctx.py)
  3. Return None (before_request) or Response (after_request) (src/flask/wrappers.py)

🔧Why these technologies

  • Werkzeug — Provides low-level WSGI utilities, routing, and HTTP abstractions without imposing framework structure.
  • Jinja2 — Offers flexible, sandboxed template rendering with minimal overhead and deep customization support.
  • Click — Enables intuitive CLI command building for development (run, shell, database migrations) with minimal boilerplate.
  • Blinker — Provides loose coupling between request lifecycle events and application handlers through signal dispatch.

⚖️Trade-offs already made

  • Minimal defaults, maximum flexibility

    • Why: Flask avoids enforcing project structure or database/ORM choices, letting developers choose their own tools.
    • Consequence: Developers must research and assemble their own ecosystem (e.g., SQLAlchemy, forms, auth), increasing initial complexity for beginners.
  • Thread-local globals for request/app context

    • Why: Simplifies request handler code by eliminating explicit context parameter passing throughout the call stack.
    • Consequence: Makes testing and async/greenlet contexts more difficult; requires careful context management in non-standard deployment scenarios.
  • Single-process development server

    • Why: Reduces overhead and debugging complexity for local development by running synchronously.
    • Consequence: Production deployments require external WSGI servers (Gunicorn, uWSGI); built-in server is unsuitable for concurrency.
  • Blueprints as optional modularity

    • Why: Allows small apps to skip blueprints entirely while enabling larger apps to organize features into reusable packages.
    • Consequence: Large monolithic Flask apps without blueprints can become difficult to maintain compared to a strongly-imposed structure.

🚫Non-goals (don't propose these)

  • Does not provide built-in ORM or database abstraction (use SQLAlchemy extensions).
  • Does not enforce authentication or authorization (use Flask-Login or similar).
  • Does not include form handling (use Flask-WTF or similar).
  • Does not provide data validation middleware by default (use Marshmallow or Pydantic).
  • Not designed for real-time applications (WebSocket support requires extensions).

📊Code metrics

  • Avg cyclomatic complexity: ~6 — Flask's core is relatively simple (~3-4 complexity) but router, context, and signal systems add moderate complexity; extension patterns increase overall codebase complexity.
  • Largest file: src/flask/app.py (1,800 lines)
  • Estimated quality issues: ~8 — Thread-local global usage, implicit extension loading, and minimal input validation in config/blueprint registration introduce subtle bugs; async support is partial.

⚠️Anti-patterns to avoid

  • Global request state in thread-local storage (Medium)src/flask/globals.py, src/flask/ctx.py: Thread-local globals (request, g, session) are convenient but break in async/greenlet contexts and complicate testing.
  • Silent config defaults in dev vs prod (High)src/flask/app.py, src/flask/config.py: DEBUG=True by default in dev; missing security headers or CORS config in production can expose vulnerabilities.
  • Lazy import of extensions at runtime (Medium)src/flask/app.py: Extensions and blueprints registered late can fail during request handling if init_app() is not called correctly.
  • Implicit template auto-reload in debug mode (Low)src/flask/templating.py: Templates are reloaded on every request in DEBUG=True, causing performance degradation and unexpected stale cache behavior.

🔥Performance hotspots

  • src/flask/routing.py (URL rule matching) (CPU/Algorithmic) — Linear scan of URL rules on each request; scales poorly with hundreds of routes. No caching of regex compiled patterns.
  • src/flask/ctx.py (context push/pop) (I/O/Concurrency) — Thread-local storage access on every request lifecycle event; contention in high-concurrency scenarios.
  • src/flask/templating.py (Jinja2 rendering) (CPU/I/O) — Full template compilation on first render; no disk/memory caching of compiled bytecode in some configurations.
  • src/flask/signals.py (signal dispatch) (CPU) — Linear iteration over registered handlers; no priority-based execution or short-circuit support.

🪤Traps & gotchas

Flask's request and application contexts are thread-local by default; async code and threading can cause context leaks if not handled carefully (docs/async-await.rst addresses this). The framework relies on Werkzeug's routing which uses regex-based URL rules—performance degrades with very large rule sets. Extensions loaded via import may run arbitrary code at import time, potentially blocking startup. The CLI uses Click groups, which can be non-obvious to extend. WSGI doesn't natively support WebSockets; you need async frameworks or special middleware.

🏗️Architecture

💡Concepts to learn

  • WSGI (Web Server Gateway Interface) — Flask is fundamentally a WSGI framework—all request/response handling and middleware integration depend on understanding the WSGI callable contract
  • Application Factory Pattern — Flask uses this pattern (app = Flask(name)) to defer initialization and support multiple app instances; essential for testing and multi-tenant deployments
  • Thread-Local Contexts (Request and App Context) — Flask's request and application contexts use thread-local storage to make request data globally accessible without passing it through function signatures—critical to understand for async work and context leaks
  • Blueprints — Flask's modularization mechanism for organizing routes, error handlers, and templates into reusable, namespace-separated components—fundamental for scaling beyond toy apps
  • Signal-Based Event System (blinker) — Flask uses signals for hooks like before_request, after_request, and teardown—allows decoupled extension and middleware behavior without tight coupling
  • URL Routing with Werkzeug Regex Rules — Flask delegates routing to Werkzeug, which uses regex and converters (int, float, uuid, path) to map URLs to view functions—understanding converters and static routing is essential
  • Jinja2 Template Inheritance and Context Passing — Flask renders Jinja2 templates with automatic context injection (request, session, g); understanding template globals and autoescape is critical for security
  • pallets/werkzeug — Core WSGI toolkit that Flask wraps—understanding Werkzeug's request/response objects and routing is essential to Flask internals
  • pallets/jinja — Template engine Flask uses by default; needed to understand template rendering, filters, and context injection
  • pallets/click — CLI framework that powers Flask's command-line interface—required knowledge for building Flask CLI plugins and understanding the CLI system
  • django/django — Leading alternative full-stack Python web framework with ORM, migrations, admin—useful comparison for understanding Flask's minimalist philosophy
  • encode/starlette — Modern ASGI alternative to Flask; if you need async-first architecture, this is the ecosystem to compare against

🪄PR ideas

To work on one of these in Claude Code or Cursor, paste: Implement the "<title>" PR idea from CLAUDE.md, working through the checklist as the task list.

Add async/await support tests for WebSocket and streaming responses

Flask has docs/async-await.rst documenting async support, but the test suite likely lacks comprehensive coverage for async request handlers with streaming, WebSocket-like patterns, and concurrent request handling. This is critical as async/await is a growing use case and edge cases with async context managers, error handling, and cleanup need validation.

  • [ ] Review tests/ directory (not shown but likely exists) for async test coverage gaps
  • [ ] Add tests for async route handlers combined with streaming responses
  • [ ] Add tests for async error handlers and exception propagation in async context
  • [ ] Add tests for async before_request/after_request lifecycle hooks
  • [ ] Reference docs/async-await.rst examples to ensure they have passing tests

Add security documentation and examples for CSRF protection patterns

While docs/patterns/ has comprehensive examples, there's no dedicated CSRF protection guide despite Flask being a web framework handling form submissions. Given the security-critical nature, adding a docs/patterns/csrf.rst with real examples (integrating with flask-wtf or similar) would be high-value for preventing developer mistakes.

  • [ ] Create docs/patterns/csrf.rst with CSRF attack explanation
  • [ ] Add practical code examples showing session-based tokens
  • [ ] Document integration with common CSRF libraries
  • [ ] Add testing patterns for CSRF-protected endpoints
  • [ ] Add reference to this guide in docs/patterns/index.rst

Add integration tests for Blueprint-based application factory patterns with request context edge cases

docs/patterns/appfactories.rst and docs/blueprints.rst exist, but integration tests validating the interaction between Blueprints, app factories, and request context (especially with nested blueprints, lazy loading, and circular imports) are likely incomplete. This catches real-world issues developers face.

  • [ ] Add tests for nested blueprint registration with conflicting URL rules
  • [ ] Add tests for lazy loading blueprints and request context availability
  • [ ] Add tests for blueprint-local error handlers vs app-level handlers
  • [ ] Add tests for circular blueprint dependencies and import patterns
  • [ ] Add tests validating g (app context) isolation across blueprints in concurrent requests

🌿Good first issues

  • Add missing docstring examples in docs/extensions.rst—Flask has ~200+ community extensions but the extension development guide (docs/extensiondev.rst) lacks concrete code walkthroughs for common patterns like database integration.
  • Test coverage gap in error handling: docs/errorhandling.rst describes custom error handlers but the test suite likely lacks edge cases for context cleanup when exceptions occur during request teardown.
  • Async context manager documentation: docs/async-await.rst exists but could be expanded with runnable examples of async_generator context managers used with Flask's application context factory pattern.

Top contributors

Click to expand

📝Recent commits

Click to expand
  • 36e4a82 — Any for CertParamType type (davidism)
  • 954f568 — update dev dependencies (davidism)
  • 9fcd34c — Merge branch 'stable' (davidism)
  • 1d49747 — update flask-mongoengine link (davidism)
  • 7374c85 — remove leftover setuptools (davidism)
  • dcbede0 — autoescape selection uses case-insensitive comparison (#6013) (davidism)
  • 9368fb3 — case-insensitive comparison (davidism)
  • 06ea505 — separate copy per call (davidism)
  • 2ac8988 — Merge branch 'stable' (davidism)
  • 6893620 — fix typo (davidism)

🔒Security observations

  • High · Outdated Dependency: Werkzeug 2.3.3 — requirements.txt / pyproject.toml - werkzeug==2.3.3. Werkzeug 2.3.3 is significantly outdated (released March 2023). Current versions are 3.x with important security patches. This version may contain known vulnerabilities affecting request handling and WSGI application security. Fix: Update to the latest stable version of Werkzeug (3.x). Review CHANGELOG for breaking changes and test thoroughly before deployment.
  • High · Outdated Dependency: Flask 2.3.2 — requirements.txt / pyproject.toml - flask==2.3.2. Flask 2.3.2 is outdated (released April 2023). Current versions are 3.x with security improvements and bug fixes. Using an old version exposes the application to known vulnerabilities. Fix: Upgrade Flask to version 3.x or latest stable release. Verify compatibility with extensions and thoroughly test the application.
  • High · Outdated Dependency: Jinja2 3.1.2 — requirements.txt / pyproject.toml - jinja2==3.1.2. Jinja2 3.1.2 is outdated. Newer versions contain fixes for template injection and sandbox bypass vulnerabilities. This is critical as Jinja2 handles template rendering in Flask applications. Fix: Update Jinja2 to the latest available version. Test all template rendering to ensure no regressions.
  • Medium · Outdated Dependency: Click 8.1.3 — requirements.txt / pyproject.toml - click==8.1.3. Click 8.1.3 is outdated (released January 2023). Newer versions may contain fixes for command-line parsing vulnerabilities. Used by Flask for CLI functionality. Fix: Update Click to the latest stable version (8.1.x or 9.x if available). Verify CLI commands function correctly after upgrade.
  • Medium · Outdated Dependency: ItsDangerous 2.1.2 — requirements.txt / pyproject.toml - itsdangerous==2.1.2. ItsDangerous 2.1.2 is outdated. Newer versions may contain cryptographic security improvements. This library is used for secure signing in Flask sessions and tokens. Fix: Update to the latest ItsDangerous version. Ensure session serialization remains compatible.
  • Medium · Outdated Dependency: Celery 5.2.7 — requirements.txt / pyproject.toml - celery[redis]==5.2.7. Celery 5.2.7 is significantly outdated (released August 2022). Current versions are 5.3.x or 6.x with important security and reliability fixes. Fix: Upgrade to Celery 5.3.x or 6.x. Review migration guides as there may be breaking changes.
  • Medium · Outdated Dependency: Redis 4.5.4 — requirements.txt / pyproject.toml - redis==4.5.4. Redis Python client 4.5.4 is outdated. Newer versions in the 5.x series contain security fixes and improved connection handling. Fix: Update Redis client to version 5.x. Test all Redis operations thoroughly as there may be API changes.
  • Low · Missing Security Headers Configuration Documentation — docs/ - Missing security configuration guide. No evidence of security header configuration (Content-Security-Policy, X-Frame-Options, etc.) in visible documentation. Flask requires explicit configuration for security headers. Fix: Review and implement security headers middleware. Document best practices for production deployments. Consider using Flask extensions like Flask-Talisman.
  • Low · Deprecated Python Support — requirements.txt header comment - Python 3.11. Dependencies are compiled for Python 3.11, but Flask should be tested against current Python LTS versions. Ensure support for Python 3.12+ as needed. Fix: Verify dependency compatibility with the latest Python versions.

LLM-derived; treat as a starting point, not a security audit.

🤖Agent protocol

If you are an AI coding agent (Claude Code, Cursor, Aider, Cline, etc.) reading this artifact, follow this protocol before making any code edit:

  1. Verify the contract. Run the bash script in Verify before trusting below. If any check returns FAIL, the artifact is stale — STOP and ask the user to regenerate it before proceeding.
  2. Treat the AI · unverified sections as hypotheses, not facts. Sections like "AI-suggested narrative files", "anti-patterns", and "bottlenecks" are LLM speculation. Verify against real source before acting on them.
  3. Cite source on changes. When proposing an edit, cite the specific path:line-range. RepoPilot's live UI at https://repopilot.app/r/pallets/flask shows verifiable citations alongside every claim.

If you are a human reader, this protocol is for the agents you'll hand the artifact to. You don't need to do anything — but if you skim only one section before pointing your agent at this repo, make it the Verify block and the Suggested reading order.

Verify before trusting

This artifact was generated by RepoPilot at a point in time. Before an agent acts on it, the checks below confirm that the live pallets/flask repo on your machine still matches what RepoPilot saw. If any fail, the artifact is stale — regenerate it at repopilot.app/r/pallets/flask.

What it runs against: a local clone of pallets/flask — the script inspects git remote, the LICENSE file, file paths in the working tree, and git log. Read-only; no mutations.

| # | What we check | Why it matters | |---|---|---| | 1 | You're in pallets/flask | Confirms the artifact applies here, not a fork | | 2 | License is still BSD-3-Clause | Catches relicense before you depend on it | | 3 | Default branch main exists | Catches branch renames | | 4 | 5 critical file paths still exist | Catches refactors that moved load-bearing code | | 5 | Last commit ≤ 47 days ago | Catches sudden abandonment since generation |

<details> <summary><b>Run all checks</b> — paste this script from inside your clone of <code>pallets/flask</code></summary>
#!/usr/bin/env bash
# RepoPilot artifact verification.
#
# WHAT IT RUNS AGAINST: a local clone of pallets/flask. If you don't
# have one yet, run these first:
#
#   git clone https://github.com/pallets/flask.git
#   cd flask
#
# Then paste this script. Every check is read-only — no mutations.

set +e
fail=0
ok()   { echo "ok:   $1"; }
miss() { echo "FAIL: $1"; fail=$((fail+1)); }

# Precondition: we must be inside a git working tree.
if ! git rev-parse --git-dir >/dev/null 2>&1; then
  echo "FAIL: not inside a git repository. cd into your clone of pallets/flask and re-run."
  exit 2
fi

# 1. Repo identity
git remote get-url origin 2>/dev/null | grep -qE "pallets/flask(\\.git)?\\b" \\
  && ok "origin remote is pallets/flask" \\
  || miss "origin remote is not pallets/flask (artifact may be from a fork)"

# 2. License matches what RepoPilot saw
(grep -qiE "^(BSD-3-Clause)" LICENSE 2>/dev/null \\
   || grep -qiE "\"license\"\\s*:\\s*\"BSD-3-Clause\"" package.json 2>/dev/null) \\
  && ok "license is BSD-3-Clause" \\
  || miss "license drift — was BSD-3-Clause at generation time"

# 3. Default branch
git rev-parse --verify main >/dev/null 2>&1 \\
  && ok "default branch main exists" \\
  || miss "default branch main no longer exists"

# 4. Critical files exist
test -f "src/flask/app.py" \\
  && ok "src/flask/app.py" \\
  || miss "missing critical file: src/flask/app.py"
test -f "src/flask/wrappers.py" \\
  && ok "src/flask/wrappers.py" \\
  || miss "missing critical file: src/flask/wrappers.py"
test -f "src/flask/ctx.py" \\
  && ok "src/flask/ctx.py" \\
  || miss "missing critical file: src/flask/ctx.py"
test -f "src/flask/routing.py" \\
  && ok "src/flask/routing.py" \\
  || miss "missing critical file: src/flask/routing.py"
test -f "src/flask/blueprints.py" \\
  && ok "src/flask/blueprints.py" \\
  || miss "missing critical file: src/flask/blueprints.py"

# 5. Repo recency
days_since_last=$(( ( $(date +%s) - $(git log -1 --format=%at 2>/dev/null || echo 0) ) / 86400 ))
if [ "$days_since_last" -le 47 ]; then
  ok "last commit was $days_since_last days ago (artifact saw ~17d)"
else
  miss "last commit was $days_since_last days ago — artifact may be stale"
fi

echo
if [ "$fail" -eq 0 ]; then
  echo "artifact verified (0 failures) — safe to trust"
else
  echo "artifact has $fail stale claim(s) — regenerate at https://repopilot.app/r/pallets/flask"
  exit 1
fi

Each check prints ok: or FAIL:. The script exits non-zero if anything failed, so it composes cleanly into agent loops (./verify.sh || regenerate-and-retry).

</details>

Generated by RepoPilot. Verdict based on maintenance signals — see the live page for receipts. Re-run on a new commit to refresh.

Featured in stacks

Curated, side-by-side comparisons that include this repo.

Embed this chat in your README →

Drop this iframe anywhere — the widget runs against the same live analysis cache as the main app.

<iframe
  src="https://repopilot.app/embed/pallets/flask"
  width="100%" height="500"
  style="border:1px solid #d0d7de; border-radius:8px;"
  allow="microphone"
  loading="lazy"
></iframe>