RepoPulse: update backend/app and dependencies (+3 areas)

Public changes compared with the previous published export:
26 files changed.

Affected areas:
- backend/app: 11 files
- dependencies: 5 files
- deployment and CI: 3 files
- documentation: 2 files
- tests: 5 files

Changed files:
- Updated: "Dockerfile.unraid"
- Updated: "README.md"
- Updated: "backend/Dockerfile"
- Updated: "backend/app/acquisition.py"
- Updated: "backend/app/architecture.py"
- Updated: "backend/app/git_analysis.py"
- Updated: "backend/app/gitea.py"
- Updated: "backend/app/jobs.py"
- Updated: "backend/app/main.py"
- Added: "backend/app/processes.py"
- Updated: "backend/app/rules.py"
- Updated: "backend/app/scanner.py"
- Updated: "backend/app/signals.py"
- Updated: "backend/app/store.py"
- Updated: "backend/pyproject.toml"
- Added: "backend/tests/test_api_responsiveness.py"
- Added: "backend/tests/test_processes.py"
- Updated: "backend/tests/test_scanner.py"
- Updated: "backend/tests/test_signals_v11.py"
- Updated: "backend/tests/test_store.py"
- Updated: "docker-compose.yml"
- Updated: "docs/ARCHITECTURE.md"
- Updated: "frontend/package-lock.json"
- Updated: "frontend/package.json"
- Updated: "package-lock.json"
- Updated: "package.json"

Export provenance/manifests refreshed; excluded from the change summary.

Publish curated RepoPulse source from a251f826238908b156485299061da76482780ed2
This commit is contained in:
Public Source Publisher committed 2026-11-17 21:10:30 +00:00
1 parent 23a4a721f1
commit 61ae49f9d0
28 files changed
+1083 -408

No files matched your search

+44
View File
@@ -221,3 +221,47 @@ def test_empty_git_repository_does_not_fallback_to_untracked_files(tmp_path: Pat
assert report.git.tracked_files == 0
assert report.metrics.files == 0
assert report.metrics.source_files == 0
def test_single_pass_python_analysis_matches_per_function_branch_counts() -> None:
import ast
from app.scanner import PYTHON_BRANCH_TYPES, _analyze_python
inner = "\n".join(f" if x == {i}:\n x += 1" for i in range(12))
outer = "\n".join(f" for i{i} in range(2):\n pass" for i in range(10))
source = (
"import os\nfrom . import sibling\n\n"
f"def outer(x):\n{outer}\n def inner(x):\n{inner}\n return x\n return inner(x)\n"
)
findings, imports = _analyze_python("pkg/mod.py", source)
expected = {
node.name: sum(1 for child in ast.walk(node) if isinstance(child, PYTHON_BRANCH_TYPES))
for node in ast.walk(ast.parse(source))
if isinstance(node, ast.FunctionDef)
}
assert expected == {"outer": 22, "inner": 12}
branch_messages = [item.message for item in findings if item.code == "maintainability.branch-heavy-function"]
assert branch_messages == ["Function outer contains 22 branch constructs"]
assert imports == ("os", "pkg")
def test_js_import_resolution_is_lexical_and_never_escapes_the_root(tmp_path: Path) -> None:
from app.architecture import build_architecture_from_imports
imports = {
"web/app.ts": ("./util", "../../outside/secret", "../web/util.js"),
"web/util.ts": (),
}
graph, _ = build_architecture_from_imports(
tmp_path,
imports,
{path: "TypeScript" for path in imports},
{path: 1 for path in imports},
{path: 0 for path in imports},
{},
)
assert {(edge.source, edge.target) for edge in graph.edges} == {("web/app.ts", "web/util.ts")}
assert graph.total_edges == 1