Skip to main content

flake8-llm-sunset

Install

$ uv tool install flake8 --with flake8-llm-sunset

Usage

% flake8 --select LSG examples/adk_example_fields_output_schema_agent.py
examples/adk_example_fields_output_schema_agent.py:14:11: LSG001 Gemini model 'gemini-2.0-flash' was shut down on 2026-06-01

Model lifecycle data

Gemini and other Google model retirement dates are sourced from Google Cloud's Model versions and lifecycle and Google models Markdown sources. Models without an announced retirement date are not checked.

Retirement dates are stored in src/flake8_llm_sunset/model_shutdowns.json and bundled with the package. Each model ID maps to a shutdown_date in YYYY-MM-DD format and an earliest boolean. Set earliest to true when the provider says the model may retire "on or after" that date, or false for a fixed retirement date.

To add or update a model, edit this JSON file and run pytest. The data tests automatically validate every entry and check that the checker loads all bundled models. Lifecycle behavior is tested separately using two fixed JSON entries, covering both fixed and earliest retirement dates at the warning and retirement boundaries. No model-specific test needs to be added for a data-only update.

The two upstream Markdown documents are also stored under sources/google-cloud/ for maintenance. Run python scripts/fetch_markdown_sources.py to refresh them. These snapshots are not included in the Python package or its source distribution.

Error codes

Error-code prefixes identify the model provider:

Prefix Provider Status
LSG Google Supported
LSO OpenAI Planned
LSA Anthropic Planned
Code Description
LSG001 A Google model has reached or passed its announced retirement date.
LSG002 A Google model is within one calendar month of its announced retirement date.

On the announced retirement date, the diagnostic changes from LSG002 to LSG001.

Metadata

Release files for flake8-llm-sunset 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flake8-llm-sunset 0.0.7
File Size Uploaded Provenance Actions
flake8_llm_sunset-0.0.7.tar.gz 6.4 kB With provenance Details for flake8_llm_sunset-0.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flake8-llm-sunset 0.0.7
File Interpreter ABI Platform Actions
flake8_llm_sunset-0.0.7-py3-none-any.whl Python 3 none any Details for flake8_llm_sunset-0.0.7-py3-none-any.whl

Total release size: 11.7 kB

Release files / flake8_llm_sunset-0.0.7.tar.gz

Download URL flake8_llm_sunset-0.0.7.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2c39dd6142d1e75068e39bb878f545e9b5c2c42fadefe09e8b34375106552787
BLAKE2b-256 checksum
How to use checksums
67e899ef3f3b31c8bfb31ab1aeb9a580c8ddaf231a8eab9b9abc278c08d66290
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Release files / flake8_llm_sunset-0.0.7-py3-none-any.whl

Download URL flake8_llm_sunset-0.0.7-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
689236a36b52e6bb492ba1c39984312375dd386e66d98a6d014d26f1474fbbd9
BLAKE2b-256 checksum
How to use checksums
3b5c0e1bd8a75d6e02b5e7dcc05ec54555a1795d9800e159c8ced5bb904270db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Security for flake8-llm-sunset 0.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for flake8_llm_sunset-0.0.7.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page