Repository navigation
Configure deprecations in the docs and tests - #1500
Merged
Merged
Conversation
Enable the griffe-frequenz-core deprecations extension and add the style for its "Deprecated" admonition, as the repository configuration template does. The extension marks symbols deprecated with typing_extensions.deprecated and makes the strict documentation build fail when one has no notice. This way, the notices of upcoming deprecations, like the ones of the old resampler configurations, are rendered and checked. Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Deprecations coming from dependencies are still reported only once, but using a symbol the SDK deprecated itself is now an error, so the SDK doesn't ship code that still uses it, which users would see as warnings they can do nothing about. This is the filter the repository configuration template generates. Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
llucax
marked this pull request as ready for review
November 27, 2026 14:19
llucax
requested review from
daniel-zullo-frequenz
and removed request for
a team
November 27, 2026 14:19
llucax
enabled auto-merge
November 27, 2026 14:19
daniel-zullo-frequenz
approved these changes
Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This prepares the repository for deprecations, like the repository configuration template does:
griffe-frequenz-coredeprecations extension. It marks symbols deprecated withtyping_extensions.deprecated, renders their notices as admonitions, and makes the strict documentation build fail when a deprecated symbol has no notice.