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.8

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.8
File Size Uploaded Provenance Actions
flake8_llm_sunset-0.0.8.tar.gz 6.5 kB With provenance Details for flake8_llm_sunset-0.0.8.tar.gz

Built distribution (wheel)

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

Total release size: 11.8 kB

Release files / flake8_llm_sunset-0.0.8.tar.gz

Download URL flake8_llm_sunset-0.0.8.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6491d7027d619de9eaba92f68afed1670e62aaaead59d37478b44872d1e4daa7
BLAKE2b-256 checksum
How to use checksums
6021e5eb13dab1d1c5ed04ec19fd2246c6c849b370cecfdd5624e494fb2b1868
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 28, 2026.

Transparency log

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

Download URL flake8_llm_sunset-0.0.8-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f55e44b73be32990dfb51e69ca67c1347289db449aab2e998eb34aa4ffc68158
BLAKE2b-256 checksum
How to use checksums
da89dd65875ae88f6a5284dccb340a8efd501ad8d723b9259178b7b995ef6214
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 28, 2026.

Transparency log

Security for flake8-llm-sunset 0.0.8

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.8.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 28, 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