- Introduced `kicad_cli.sh` for local and Docker-based kicad-cli execution. - Created `schops.py` for schematic operations including ERC, BOM, netlist exports, and bulk edits. - Added README.md for schops with installation and usage instructions. - Included requirements.txt for necessary Python packages. - Implemented rules engine for applying field defaults and renaming nets. - Added tests for rules engine functionality. - Introduced scope guard script to enforce file modification policies based on PR labels. - Created watch script to monitor KiCad files and trigger hardware gate on changes.
10 lines
308 B
Bash
10 lines
308 B
Bash
#!/usr/bin/env bash
|
||
# gate_scope.sh – Run the Python scope guard in CI
|
||
|
||
set -euo pipefail
|
||
|
||
# Expose a default label fallback if none is provided (can be overridden in the environment)
|
||
export DEFAULT_AI_LABEL="${DEFAULT_AI_LABEL:-ai:impl}"
|
||
|
||
# Run the guard script
|
||
python3 "$(dirname "$0")/../scope_guard.py" |