Fix Black
Developmentfix-blackFix Black is an Agent Skill for development published in the Azure/azure-sdk-for-python repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Automatically fix black code formatting issues in any Azure SDK for Python package
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/Azure/azure-sdk-for-python/blob/HEAD/.github/skills/fix-black/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/fix-black, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Fix Black Formatting Issues Skill
This skill automatically fixes black code formatting issues in any Azure SDK for Python package.
Instructions
- Activate virtual environment FIRST
- Install
eng/tools/azure-sdk-tools[build] - Navigate to the package path
- Run
azpysdk --isolate black . - Review the changes with
git diff - Commit the changes
Notes
- The Azure SDK uses
eng/black-pyproject.tomlfor repo-wide configuration