refactor(scripts): reorganize scripts/ into seed/ and validate/ subfolders
Move 9 init/seed scripts into scripts/seed/ and 7 validation scripts (+ validators/ subfolder) into scripts/validate/ to reduce clutter in the root scripts/ directory. Update all references across Makefile, CI/CD configs, pre-commit hooks, docs (~40 files), and Python imports. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -368,7 +368,7 @@ make help-db
|
||||
|
||||
### Adding New Admin Settings
|
||||
|
||||
Edit `scripts/init_production.py` to add new platform settings:
|
||||
Edit `scripts/seed/init_production.py` to add new platform settings:
|
||||
|
||||
```python
|
||||
def create_admin_settings(db: Session) -> int:
|
||||
@@ -391,7 +391,7 @@ def create_admin_settings(db: Session) -> int:
|
||||
|
||||
### Adding New Demo Data
|
||||
|
||||
Edit `scripts/seed_demo.py` to extend demo data creation:
|
||||
Edit `scripts/seed/seed_demo.py` to extend demo data creation:
|
||||
|
||||
```python
|
||||
def seed_demo_data(db: Session, auth_manager: AuthManager):
|
||||
@@ -468,7 +468,7 @@ if settings.your_boolean_setting:
|
||||
|
||||
### Adding New Demo Store Configurations
|
||||
|
||||
Edit the `DEMO_STORES` list in `scripts/seed_demo.py`:
|
||||
Edit the `DEMO_STORES` list in `scripts/seed/seed_demo.py`:
|
||||
|
||||
```python
|
||||
DEMO_STORES = [
|
||||
@@ -507,7 +507,7 @@ Add corresponding Makefile command:
|
||||
```makefile
|
||||
seed-demo-custom:
|
||||
@echo 🎪 Seeding custom demo data...
|
||||
@set SEED_MODE=custom&& $(PYTHON) scripts/seed_demo.py
|
||||
@set SEED_MODE=custom&& $(PYTHON) scripts/seed/seed_demo.py
|
||||
@echo ✅ Custom demo seeding completed
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user