Skip to main content

In this article

Coding Standards/Python Script

Coding Standards/Python Script
FieldValue
Kindinstruction
Source.github/instructions/coding-standards/python-script.instructions.md
InvocationApplied automatically to **/*.py
InteractiveNo

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.