Add check for typed ConfigEntry in quality scale validation (#132028)

This commit is contained in:
epenet
2024-12-10 13:07:08 +01:00
committed by GitHub
parent 46d4081ec6
commit 95107cf670
12 changed files with 101 additions and 22 deletions

View File

@@ -22,7 +22,7 @@ def _has_diagnostics_function(module: ast.Module) -> bool:
)
def validate(integration: Integration) -> list[str] | None:
def validate(integration: Integration, *, rules_done: set[str]) -> list[str] | None:
"""Validate that the integration implements diagnostics."""
diagnostics_file = integration.path / "diagnostics.py"