Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Python aicode-complexitycode-healthcode-intelligencecode-qualitydead-codedeveloper-toolsdocumentationgit-analyticsmcpopen-sourcepythonrefactoringstatic-analysistechnical-debt
fix(impacted-tests): derive the prose suffixes from DOC_EXTENSIONS (#3729)
Raghav Chamadiya7092f4d90d17
diff --git a/packages/core/src/repowise/core/analysis/selection_scopes.py b/packages/core/src/repowise/core/analysis/selection_scopes.pyindex 699bc3bba..b36f1a9d0 100644--- a/packages/core/src/repowise/core/analysis/selection_scopes.py+++ b/packages/core/src/repowise/core/analysis/selection_scopes.py@@ -42,6 +42,7 @@ from pathlib import PurePosixPathimport pathspec+from ..support_paths import DOC_EXTENSIONSfrom ..test_paths import is_test_related_pathfrom .test_selection import (JS_SUFFIXES,@@ -119,7 +120,7 @@ _OWNED = frozenset(# Prose that needs no tests when nothing names it and no package holds it, as# under ``docs/``. Not ``.txt``: outside docs it is mostly data read by# convention or a glob (a Spring ``banner.txt``, a dependency baseline).-_PROSE = frozenset({".md", ".rst", ".adoc", ".markdown"})+_PROSE = (DOC_EXTENSIONS - {".txt", ".mdx"}) | {".markdown"}# Assets only a naming file stands for: a test may glob a query or data file.# Data only below the root: a root-level ``*.yaml`` or ``*.json`` configures a tool._NAMED_ONLY = frozenset({".scm", ".graphql", ".gql", ".sql"})