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:
@@ -1,6 +1,6 @@
|
||||
# Architecture Rules Reference
|
||||
|
||||
This document provides a comprehensive reference for all architectural rules enforced by the `scripts/validate_architecture.py` validator.
|
||||
This document provides a comprehensive reference for all architectural rules enforced by the `scripts/validate/validate_architecture.py` validator.
|
||||
|
||||
## Overview
|
||||
|
||||
@@ -33,23 +33,23 @@ make qa
|
||||
|
||||
```bash
|
||||
# Check all files
|
||||
python scripts/validate_architecture.py
|
||||
python scripts/validate/validate_architecture.py
|
||||
|
||||
# Check specific directory
|
||||
python scripts/validate_architecture.py -d app/api/
|
||||
python scripts/validate/validate_architecture.py -d app/api/
|
||||
|
||||
# Check a single file
|
||||
python scripts/validate_architecture.py -f app/api/v1/admin/stores.py
|
||||
python scripts/validate/validate_architecture.py -f app/api/v1/admin/stores.py
|
||||
|
||||
# Check all files for an entity
|
||||
python scripts/validate_architecture.py -o merchant
|
||||
python scripts/validate_architecture.py -o store
|
||||
python scripts/validate/validate_architecture.py -o merchant
|
||||
python scripts/validate/validate_architecture.py -o store
|
||||
|
||||
# Verbose output
|
||||
python scripts/validate_architecture.py --verbose
|
||||
python scripts/validate/validate_architecture.py --verbose
|
||||
|
||||
# JSON output (for CI/CD)
|
||||
python scripts/validate_architecture.py --json
|
||||
python scripts/validate/validate_architecture.py --json
|
||||
```
|
||||
|
||||
### Output Format
|
||||
@@ -1072,7 +1072,7 @@ Before committing code:
|
||||
|
||||
- [ ] Run `make format` (Ruff formatting)
|
||||
- [ ] Run `make lint` (Ruff + mypy)
|
||||
- [ ] Run `python scripts/validate_architecture.py`
|
||||
- [ ] Run `python scripts/validate/validate_architecture.py`
|
||||
- [ ] Fix all **Error** level violations
|
||||
- [ ] Review **Warning** level violations
|
||||
- [ ] Run relevant tests
|
||||
@@ -1099,7 +1099,7 @@ Before committing code:
|
||||
All rules are defined in `.architecture-rules.yaml`. To modify rules:
|
||||
|
||||
1. Edit `.architecture-rules.yaml`
|
||||
2. Update `scripts/validate_architecture.py` if implementing new checks
|
||||
2. Update `scripts/validate/validate_architecture.py` if implementing new checks
|
||||
3. Run validator to test changes
|
||||
4. Update this documentation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user