Coverage for /Users/les/Projects/crackerjack/crackerjack/models/config.py: 0%
71 statements
« prev ^ index » next coverage.py v7.10.6, created at 2025-09-03 15:39 -0700
« prev ^ index » next coverage.py v7.10.6, created at 2025-09-03 15:39 -0700
1import typing as t
2from dataclasses import dataclass, field
5@dataclass
6class CleaningConfig:
7 clean: bool = True
8 update_docs: bool = False
9 force_update_docs: bool = False
10 compress_docs: bool = False
11 auto_compress_docs: bool = False
14@dataclass
15class HookConfig:
16 skip_hooks: bool = False
17 update_precommit: bool = False
18 experimental_hooks: bool = False
19 enable_pyrefly: bool = False
20 enable_ty: bool = False
23@dataclass
24class TestConfig:
25 test: bool = False
26 benchmark: bool = False
27 test_workers: int = 0
28 test_timeout: int = 0
31@dataclass
32class PublishConfig:
33 publish: t.Any | None = None
34 bump: t.Any | None = None
35 all: t.Any | None = None
36 no_git_tags: bool = False
37 skip_version_check: bool = False
40@dataclass
41class GitConfig:
42 commit: bool = False
43 create_pr: bool = False
46@dataclass
47class AIConfig:
48 ai_agent: bool = False
49 start_mcp_server: bool = False
50 max_iterations: int = 10
51 autofix: bool = True
52 ai_agent_autofix: bool = False
55@dataclass
56class ExecutionConfig:
57 interactive: bool = False
58 verbose: bool = False
59 async_mode: bool = False
60 no_config_updates: bool = False
63@dataclass
64class ProgressConfig:
65 enabled: bool = False
68@dataclass
69class CleanupConfig:
70 auto_cleanup: bool = True
71 keep_debug_logs: int = 5
72 keep_coverage_files: int = 10
75@dataclass
76class EnterpriseConfig:
77 enabled: bool = False
78 license_key: str | None = None
79 organization: str | None = None
82@dataclass
83class WorkflowOptions:
84 cleaning: CleaningConfig = field(default_factory=CleaningConfig)
85 hooks: HookConfig = field(default_factory=HookConfig)
86 testing: TestConfig = field(default_factory=TestConfig)
87 publishing: PublishConfig = field(default_factory=PublishConfig)
88 git: GitConfig = field(default_factory=GitConfig)
89 ai: AIConfig = field(default_factory=AIConfig)
90 execution: ExecutionConfig = field(default_factory=ExecutionConfig)
91 progress: ProgressConfig = field(default_factory=ProgressConfig)
92 cleanup: CleanupConfig = field(default_factory=CleanupConfig)
93 enterprise: EnterpriseConfig = field(default_factory=EnterpriseConfig)