tenseleyflow/shtick / 6a98a7f

Browse files

cleanup settings

Authored by espadonne
SHA
6a98a7f6413f784c9662afdc6948ea9542ddd5a2
Parents
86cf4e0
Tree
d1830e0

1 changed file

StatusFile+-
M src/shtick/settings.py 2 34
src/shtick/settings.pymodified
@@ -17,7 +17,7 @@ class GenerationSettings:
1717
     """Settings for file generation"""
1818
 
1919
     shells: List[str] = field(default_factory=list)  # Empty = auto-detect
20
-    parallel: bool = False  # Threading not implemented yet
20
+    parallel: bool = False  # Enable parallel generation
2121
     consolidate_files: bool = True
2222
 
2323
 
@@ -31,15 +31,6 @@ class BehaviorSettings:
3131
     interactive_mode: bool = True
3232
 
3333
 
34
-@dataclass
35
-class PerformanceSettings:
36
-    """Settings for performance optimization"""
37
-
38
-    cache_ttl: int = 300  # 5 minutes
39
-    lazy_load: bool = False  # Not implemented yet
40
-    batch_operations: bool = True
41
-
42
-
4334
 class Settings:
4435
     """Manages shtick settings and preferences"""
4536
 
@@ -56,7 +47,6 @@ class Settings:
5647
         if not self._loaded:
5748
             self.generation = GenerationSettings()
5849
             self.behavior = BehaviorSettings()
59
-            self.performance = PerformanceSettings()
6050
             self._settings_path = self.get_settings_path()
6151
             self._load()
6252
             Settings._loaded = True
@@ -96,15 +86,6 @@ class Settings:
9686
                 self.behavior.backup_on_save = beh_data.get("backup_on_save", False)
9787
                 self.behavior.interactive_mode = beh_data.get("interactive_mode", True)
9888
 
99
-            # Load performance settings
100
-            if "performance" in data:
101
-                perf_data = data["performance"]
102
-                self.performance.cache_ttl = perf_data.get("cache_ttl", 300)
103
-                self.performance.lazy_load = perf_data.get("lazy_load", False)
104
-                self.performance.batch_operations = perf_data.get(
105
-                    "batch_operations", True
106
-                )
107
-
10889
             logger.debug("Settings loaded successfully")
10990
 
11091
         except Exception as e:
@@ -128,11 +109,6 @@ class Settings:
128109
                 "backup_on_save": self.behavior.backup_on_save,
129110
                 "interactive_mode": self.behavior.interactive_mode,
130111
             },
131
-            "performance": {
132
-                "cache_ttl": self.performance.cache_ttl,
133
-                "lazy_load": self.performance.lazy_load,
134
-                "batch_operations": self.performance.batch_operations,
135
-            },
136112
         }
137113
 
138114
         # Write TOML file
@@ -164,7 +140,7 @@ class Settings:
164140
 [generation]
165141
 # Shells to generate files for. Empty list = auto-detect based on current shell
166142
 shells = []
167
-# Enable parallel generation (not implemented yet)
143
+# Enable parallel generation for faster processing with many shells
168144
 parallel = false
169145
 # Consolidate all items into single files per shell
170146
 consolidate_files = true
@@ -178,14 +154,6 @@ check_conflicts = true
178154
 backup_on_save = false
179155
 # Enable interactive prompts
180156
 interactive_mode = true
181
-
182
-[performance]
183
-# Cache time-to-live in seconds
184
-cache_ttl = 300
185
-# Enable lazy loading (not implemented yet)
186
-lazy_load = false
187
-# Enable batch operations for better performance
188
-batch_operations = true
189157
 """
190158
 
191159
         with open(self._settings_path, "w") as f: