ragtime-cli 0.2.2__py3-none-any.whl → 0.2.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ragtime-cli might be problematic. Click here for more details.
- {ragtime_cli-0.2.2.dist-info → ragtime_cli-0.2.4.dist-info}/METADATA +179 -42
- {ragtime_cli-0.2.2.dist-info → ragtime_cli-0.2.4.dist-info}/RECORD +11 -9
- src/cli.py +657 -7
- src/commands/create-pr.md +389 -0
- src/commands/generate-docs.md +325 -0
- src/commands/pr-graduate.md +7 -2
- src/config.py +19 -0
- {ragtime_cli-0.2.2.dist-info → ragtime_cli-0.2.4.dist-info}/WHEEL +0 -0
- {ragtime_cli-0.2.2.dist-info → ragtime_cli-0.2.4.dist-info}/entry_points.txt +0 -0
- {ragtime_cli-0.2.2.dist-info → ragtime_cli-0.2.4.dist-info}/licenses/LICENSE +0 -0
- {ragtime_cli-0.2.2.dist-info → ragtime_cli-0.2.4.dist-info}/top_level.txt +0 -0
src/config.py
CHANGED
|
@@ -36,11 +36,19 @@ class CodeConfig:
|
|
|
36
36
|
])
|
|
37
37
|
|
|
38
38
|
|
|
39
|
+
@dataclass
|
|
40
|
+
class ConventionsConfig:
|
|
41
|
+
"""Configuration for convention checking."""
|
|
42
|
+
files: list[str] = field(default_factory=lambda: [".ragtime/CONVENTIONS.md"])
|
|
43
|
+
also_search_memories: bool = True
|
|
44
|
+
|
|
45
|
+
|
|
39
46
|
@dataclass
|
|
40
47
|
class RagtimeConfig:
|
|
41
48
|
"""Main ragtime configuration."""
|
|
42
49
|
docs: DocsConfig = field(default_factory=DocsConfig)
|
|
43
50
|
code: CodeConfig = field(default_factory=CodeConfig)
|
|
51
|
+
conventions: ConventionsConfig = field(default_factory=ConventionsConfig)
|
|
44
52
|
|
|
45
53
|
@classmethod
|
|
46
54
|
def load(cls, project_path: Path) -> "RagtimeConfig":
|
|
@@ -58,6 +66,7 @@ class RagtimeConfig:
|
|
|
58
66
|
|
|
59
67
|
docs_data = data.get("docs", {})
|
|
60
68
|
code_data = data.get("code", {})
|
|
69
|
+
conventions_data = data.get("conventions", {})
|
|
61
70
|
|
|
62
71
|
return cls(
|
|
63
72
|
docs=DocsConfig(
|
|
@@ -70,6 +79,12 @@ class RagtimeConfig:
|
|
|
70
79
|
languages=code_data.get("languages", CodeConfig().languages),
|
|
71
80
|
exclude=code_data.get("exclude", CodeConfig().exclude),
|
|
72
81
|
),
|
|
82
|
+
conventions=ConventionsConfig(
|
|
83
|
+
files=conventions_data.get("files", ConventionsConfig().files),
|
|
84
|
+
also_search_memories=conventions_data.get(
|
|
85
|
+
"also_search_memories", ConventionsConfig().also_search_memories
|
|
86
|
+
),
|
|
87
|
+
),
|
|
73
88
|
)
|
|
74
89
|
|
|
75
90
|
def save(self, project_path: Path) -> None:
|
|
@@ -89,6 +104,10 @@ class RagtimeConfig:
|
|
|
89
104
|
"languages": self.code.languages,
|
|
90
105
|
"exclude": self.code.exclude,
|
|
91
106
|
},
|
|
107
|
+
"conventions": {
|
|
108
|
+
"files": self.conventions.files,
|
|
109
|
+
"also_search_memories": self.conventions.also_search_memories,
|
|
110
|
+
},
|
|
92
111
|
}
|
|
93
112
|
|
|
94
113
|
with open(config_path, "w") as f:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|