In this article
Coding Standards/Python Script
| Field | Value |
|---|---|
| Kind | instruction |
| Source | .github/instructions/coding-standards/python-script.instructions.md |
| Invocation | Applied automatically to **/*.py |
| Interactive | No |
What it does
Python scripting conventions
When to use it
Apply these conventions to Python automation, tooling, and CLI code when choosing entry points, typing, logging, paths, subprocesses, and error handling. Use the uv environment instructions before executing or changing dependencies, and apply the Python test guidance to pytest code.
Example usage
Provide a concrete example that shows the asset in action, including representative input and the resulting output.