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
2 changes: 2 additions & 0 deletions src/agentready/assessors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
PatternReferencesAssessor,
ProgressiveDisclosureAssessor,
)
from .repomix import RepomixConfigAssessor
from .security import DependencySecurityAssessor
from .structure import (
IssuePRTemplatesAssessor,
Expand Down Expand Up @@ -104,6 +105,7 @@ def create_all_assessors() -> list[BaseAssessor]:
DbtProjectStructureAssessor(), # dbt conditional
# Tier 3 Important — 14% total
DesignIntentAssessor(), # NEW (2%)
RepomixConfigAssessor(), # 2%
CyclomaticComplexityAssessor(), # 3%
ArchitectureDecisionsAssessor(), # 3%
IssuePRTemplatesAssessor(), # 3%
Expand Down
14 changes: 10 additions & 4 deletions tests/unit/test_repomix.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,10 @@ def test_get_output_files_empty(self, tmp_path):

def test_get_output_files_found(self, tmp_path):
"""Test getting output files when they exist."""
(tmp_path / "repomix-output.md").write_text("content")
(tmp_path / "repomix-output.xml").write_text("<xml/>")
repomix_dir = tmp_path / "repomix"
repomix_dir.mkdir()
(repomix_dir / "repomix-output.md").write_text("content")
(repomix_dir / "repomix-output.xml").write_text("<xml/>")

service = RepomixService(tmp_path)
files = service.get_output_files()
Expand All @@ -116,7 +118,9 @@ def test_check_freshness_no_files(self, tmp_path):

def test_check_freshness_fresh_file(self, tmp_path):
"""Test freshness check with recent file."""
output = tmp_path / "repomix-output.md"
repomix_dir = tmp_path / "repomix"
repomix_dir.mkdir()
output = repomix_dir / "repomix-output.md"
output.write_text("fresh content")

service = RepomixService(tmp_path)
Expand Down Expand Up @@ -223,7 +227,9 @@ def test_assess_fresh_output(self, tmp_path):
# Create .git directory, config and output
(tmp_path / ".git").mkdir()
(tmp_path / "repomix.config.json").write_text("{}")
(tmp_path / "repomix-output.md").write_text("content")
repomix_dir = tmp_path / "repomix"
repomix_dir.mkdir()
(repomix_dir / "repomix-output.md").write_text("content")

repo = Repository(
path=tmp_path,
Expand Down
Loading