diff --git a/gitgalaxy/metrics/signal_processor.py b/gitgalaxy/metrics/signal_processor.py index 36032e2f..c1a6c916 100644 --- a/gitgalaxy/metrics/signal_processor.py +++ b/gitgalaxy/metrics/signal_processor.py @@ -2124,7 +2124,8 @@ def _get_dominant_lang(self, composition: dict[str, dict[str, Any]]) -> str: # take the impact-argmax over code languages first and only fall back to the # full set (docs included) when there is no code language present at all. doc_languages = { - lang.lower() for lang in self.asset_masks.get("DOCUMENTATION_LANGUAGES", {"markdown", "plaintext", "rst", "text"}) + lang.lower() + for lang in self.asset_masks.get("DOCUMENTATION_LANGUAGES", {"markdown", "plaintext", "rst", "text"}) } code_langs = {lang: stats for lang, stats in composition.items() if lang.lower() not in doc_languages} ranked = code_langs or composition diff --git a/tests/mypy_audit_baseline.json b/tests/mypy_audit_baseline.json index 7bdd9c55..82fec440 100644 --- a/tests/mypy_audit_baseline.json +++ b/tests/mypy_audit_baseline.json @@ -1,4 +1,4 @@ { - "gitgalaxy/galaxyscope.py:368: assignment": "Incompatible types in assignment (expression has type \"TextIOWrapper\", variable has type \"BufferedReader\")", + "gitgalaxy/galaxyscope.py:370: assignment": "Incompatible types in assignment (expression has type \"TextIOWrapper[_WrappedBuffer]\", variable has type \"BufferedReader[_BufferedReaderStream]\")", "gitgalaxy/tools/network_auditing/full_api_network_map.py:32: assignment": "Incompatible types in assignment (expression has type \"None\", variable has type Module)" } \ No newline at end of file diff --git a/tests/ruff_audit_baseline.json b/tests/ruff_audit_baseline.json index 9684d2c0..c915e637 100644 --- a/tests/ruff_audit_baseline.json +++ b/tests/ruff_audit_baseline.json @@ -1,5 +1,5 @@ { - "gitgalaxy/core/guidestar_lens.py:139: C401": "Unnecessary generator (rewrite as a set comprehension)", + "gitgalaxy/core/guidestar_lens.py:149: C401": "Unnecessary generator (rewrite as a set comprehension)", "gitgalaxy/metrics/signal_processor.py:531: RUF046": "Value being cast to `int` is already an integer", "gitgalaxy/recorders/audit_recorder.py:293: C416": "Unnecessary dict comprehension (rewrite using `dict()`)", "gitgalaxy/recorders/audit_recorder.py:310: C414": "Unnecessary `list()` call within `sorted()`",