mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-09-14 22:01:46 +02:00
docs(agents): restructure script validation minimums
This commit is contained in:
+8
-8
@@ -125,14 +125,14 @@ agents MUST ask which state to use before editing.
|
|||||||
|
|
||||||
### Script validation
|
### Script validation
|
||||||
|
|
||||||
- After creating or modifying persistent script files, agents MUST run available language-aware
|
After creating or modifying persistent script files, agents MUST run available language-aware checks
|
||||||
checks and report unavailable validation. Python files MUST at minimum pass
|
and report unavailable validation. Unless the project provides equivalent or stronger checks, agents
|
||||||
`python -m py_compile <file>` using the project-approved runtime unless existing checks are
|
MUST run e.g.:
|
||||||
equivalent or stronger.
|
|
||||||
- Nushell files MUST pass `nu-check --debug`, treating `false` as failure and using `--as-module`
|
- Python: `python -m py_compile <file>` using the project-approved runtime.
|
||||||
for modules. Non-trivial changes SHOULD also be inspected with `nu --ide-check 100 <file>`.
|
- Nushell: `nu-check --debug`, treating `false` as failure and using `--as-module` for modules;
|
||||||
- POSIX shell scripts MUST pass `shellcheck` unless the project provides equivalent or stronger
|
non-trivial changes SHOULD also be inspected with `nu --ide-check 100 <file>`.
|
||||||
checks.
|
- POSIX shell: `shellcheck`.
|
||||||
|
|
||||||
### Script and job reliability
|
### Script and job reliability
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user