Skip to content

Enable exhaustive-match checks for mypy - #602

Open
llucax wants to merge 6 commits into
frequenz-floss:v0.x.xfrom
llucax:fix-414
Open

Enable exhaustive-match checks for mypy#602
llucax wants to merge 6 commits into
frequenz-floss:v0.x.xfrom
llucax:fix-414

Conversation

@llucax

@llucax llucax commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Fixes #414.

@llucax
llucax requested a review from a team as a code owner July 15, 2026 12:35
@llucax
llucax requested review from florian-wagner-frequenz and removed request for a team July 15, 2026 12:35
@github-actions github-actions Bot added the part:template Affects the cookiecutter template files label Jul 15, 2026
@llucax
llucax requested a review from Marenz July 15, 2026 16:27
@llucax llucax self-assigned this Jul 15, 2026
llucax added 6 commits July 15, 2026 18:32
This file and some sections are expected to be present in every migrated
project, so make them a manual step instead of skipping.

Also improve the skip message when the option was already removed.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Enable mypy's exhaustive-match error code in generated projects and
regenerate fixtures for all repository and license variants.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Add an idempotent migration for mypy's exhaustive-match error code while
preserving custom error-code settings for manual review.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Apply the migration script.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Handle intentional actor no-ops and invalid repository types explicitly
in template hooks so the new check succeeds.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:template Affects the cookiecutter template files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable exhaustive-match checks for mypy

1 participant