Skip to content

Commit 2ffc673

Browse files
committed
Remove redundant comments
1 parent 15432a0 commit 2ffc673

10 files changed

Lines changed: 8 additions & 31 deletions

sync_ai_rules/__main__.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@
1212
from sync_ai_rules.file_updater import update_documentation_file
1313

1414

15-
def find_project_root() -> str:
16-
"""Return current working directory as project root."""
17-
return str(Path.cwd())
18-
19-
2015
def get_category(file_path: str, source_dir: str) -> str:
2116
"""Extract category from file path relative to source directory."""
2217
rel_path = os.path.relpath(file_path, source_dir)
@@ -66,7 +61,7 @@ def scan_and_parse(parser, source_dir: str, project_root: str) -> List[RuleMetad
6661
def main():
6762
"""Main orchestration: load pipelines → parse → generate → update files."""
6863
# Setup
69-
project_root = find_project_root()
64+
project_root = str(Path.cwd())
7065
script_dir = os.path.dirname(os.path.abspath(__file__))
7166

7267
plugin_manager = PluginManager()

sync_ai_rules/core/generator_interface.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
#!/usr/bin/env python3
2-
"""
3-
Output generator interface.
4-
"""
52

63
from abc import ABC, abstractmethod
74
from typing import Any, Dict, List

sync_ai_rules/core/parser_interface.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
#!/usr/bin/env python3
2-
"""
3-
Input parser interface.
4-
"""
52

63
from abc import ABC, abstractmethod
74
from typing import Any, Dict, List, Optional

sync_ai_rules/core/pipeline.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
#!/usr/bin/env python3
2-
"""
3-
Pipeline data model for parser-generator pairs.
4-
"""
52

63
from dataclasses import dataclass
74

sync_ai_rules/core/plugin_manager.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
#!/usr/bin/env python3
2-
"""
3-
Plugin manager for loading parser-generator pipelines from configuration.
4-
"""
52

63
import importlib.util
74
from pathlib import Path

sync_ai_rules/core/rule_metadata.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
#!/usr/bin/env python3
2-
"""
3-
Rule metadata data model.
4-
"""
52

63
from dataclasses import dataclass
74
from typing import Any, Dict, List

sync_ai_rules/generators/base_generator.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
#!/usr/bin/env python3
2-
"""
3-
Base Generator - provides shared functionality for all generators.
4-
"""
52

63
from abc import abstractmethod
74
from typing import List

sync_ai_rules/generators/code_review_guidelines_generator.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
#!/usr/bin/env python3
2-
"""
3-
Code Review Guidelines Generator plugin - generates review guidelines for Codex.
4-
"""
52

63
from typing import Any, Dict, List
74

@@ -16,6 +13,13 @@ class CodeReviewGuidelinesGenerator(BaseGenerator):
1613
def name(self) -> str:
1714
return "code-review-guidelines"
1815

16+
@property
17+
def default_filenames(self) -> List[str]:
18+
"""Default target files for all generators."""
19+
return [
20+
"AGENTS.md",
21+
]
22+
1923
def generate(self, rules: Dict[str, List[RuleMetadata]], config: Dict[str, Any]) -> str:
2024
"""Generate review guidelines content with XML tags."""
2125
lines = [

sync_ai_rules/generators/development_rules_generator.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
#!/usr/bin/env python3
2-
"""
3-
Development Rules Generator plugin - generates development rules documentation with XML tags.
4-
"""
52

63
from typing import Any, Dict, List
74

sync_ai_rules/parsers/code_review_parser.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ def _parse_frontmatter(self, content: str) -> Dict[str, str]:
8686

8787
def _extract_category(self, file_path: Path, project_root: Optional[str]) -> str:
8888
"""Extract category from directory structure."""
89-
# Find .code_review in the path
9089
parts = file_path.parts
9190
try:
9291
code_review_idx = parts.index(".code_review")

0 commit comments

Comments
 (0)