Add Python tooling validation foundation
This commit is contained in:
@@ -41,6 +41,7 @@ Focused checks:
|
||||
```bash
|
||||
./scripts/check-bash.sh
|
||||
./scripts/check-ansible.sh
|
||||
./scripts/check-python.sh
|
||||
./scripts/check-docs.sh
|
||||
```
|
||||
|
||||
@@ -64,6 +65,15 @@ Also run targeted checks for changed files, such as `bash -n`, `ansible-playbook
|
||||
- Exit codes: `0` OK, `1` operational issue, `2` invalid input or missing dependency.
|
||||
- Keep scripts readable; separate discovery, pre-check, change, post-check, and reporting when it helps.
|
||||
|
||||
## Python Standards
|
||||
|
||||
- Use Python for parsing, reporting, and structured operational tooling where it adds value over Bash.
|
||||
- Keep Python tools read-only by default.
|
||||
- Prefer the Python standard library.
|
||||
- Avoid frameworks and unnecessary abstractions.
|
||||
- Use clear operational output and meaningful exit codes.
|
||||
- Keep tools small, focused, and easy to validate.
|
||||
|
||||
## Ansible Standards
|
||||
|
||||
- Keep playbooks short and roles simple.
|
||||
|
||||
Reference in New Issue
Block a user