Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion gitgalaxy/metrics/signal_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/mypy_audit_baseline.json
Original file line number Diff line number Diff line change
@@ -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)"
}
2 changes: 1 addition & 1 deletion tests/ruff_audit_baseline.json
Original file line number Diff line number Diff line change
@@ -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()`",
Expand Down
Loading