Convert to dictionary, excluding None values.
(self)
| 42 | None # e.g., ["docker/data/*"] skipped by artifact analysis |
| 43 | ) |
| 44 | |
| 45 | def to_dict(self) -> dict: |
| 46 | """Convert to dictionary, excluding None values.""" |
| 47 | result = {} |
| 48 | if self.include_patterns: |
| 49 | result["include_patterns"] = self.include_patterns |
| 50 | if self.exclude_patterns: |
| 51 | result["exclude_patterns"] = self.exclude_patterns |
| 52 | if self.artifact_exclude: |
| 53 | result["artifact_exclude"] = self.artifact_exclude |
| 54 | if self.focus_modules: |
| 55 | result["focus_modules"] = self.focus_modules |
| 56 | if self.doc_type: |
| 57 | result["doc_type"] = self.doc_type |
| 58 | if self.custom_instructions: |
| 59 | result["custom_instructions"] = self.custom_instructions |
| 60 | return result |
no outgoing calls
no test coverage detected