MCPcopy Create free account
hub / github.com/FSoft-AI4Code/CodeWiki / from_args

Method from_args

codewiki/src/config.py:139–155  ·  view source on GitHub ↗

Create configuration from parsed arguments.

(cls, args: argparse.Namespace)

Source from the content-addressed store, hash-verified

137 with_prose: bool = False
138 # Docs layout (LAYOUT_HIERARCHICAL or LAYOUT_FLAT)
139 layout: str = DEFAULT_LAYOUT
140 # Persist each successful LLM clustering batch under docs/temp for resume after failures.
141 cluster_batch_cache: bool = True
142
143 def __post_init__(self):
144 validate_min_module_tokens(self.min_token_per_module)
145
146 @property
147 def artifact_exclude(self) -> list[str] | None:
148 """Extra patterns excluded from artifact analysis (from agent instructions)."""
149 if self.agent_instructions:
150 return self.agent_instructions.get("artifact_exclude")
151 return None
152
153 @property
154 def include_patterns(self) -> list[str] | None:
155 """Get file include patterns from agent instructions."""
156 if self.agent_instructions:
157 return self.agent_instructions.get("include_patterns")
158 return None

Callers 2

_process_jobMethod · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected