refactor: replace configobj spec with pydantic-settings and Click CLI
Drop the config.spec/configobj configuration in favour of an AppSettings pydantic-settings model (settings.py) loaded from SMILEYFACE_-prefixed env vars or a .env file. Introduce AppContext (context.py) to carry settings plus logging, dispatch commands through a Click CLI (cli.py), and centralise log setup (logging_setup.py). Update hub_machine, datalayer, and scraping modules to consume the new context. Add .env.example and ignore .env. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
183fa960c3
commit
709e6f25fa
@@ -4,4 +4,5 @@ dist/
|
||||
__pycache__
|
||||
*.egg-info
|
||||
idea
|
||||
.env
|
||||
|
||||
|
||||
Reference in New Issue
Block a user