Add general-purpose fix-mypy, fix-pylint, and fix-black Copilot skills#45809
Draft
Add general-purpose fix-mypy, fix-pylint, and fix-black Copilot skills#45809
Conversation
Co-authored-by: l0lawrence <100643745+l0lawrence@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add general-purpose Copilot skills for Azure SDK for Python
Add general-purpose fix-mypy, fix-pylint, and fix-black Copilot skills
Mar 19, 2026
l0lawrence
reviewed
Mar 19, 2026
| description: Automatically fix black code formatting issues in any Azure SDK for Python package. Expects GitHub issue URL, package path, and optional virtual env path in the request. Format "fix black issue <issue-url> [in <package-path>] [using venv <path>]" | ||
| --- | ||
|
|
||
| # Fix Black Formatting Issues Skill |
Co-authored-by: l0lawrence <100643745+l0lawrence@users.noreply.github.com>
Contributor
Author
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The existing Copilot skills for mypy and pylint were scoped exclusively to
azure-ai-mland usedtox. This adds three general-purpose equivalents that work across any package in the repo and usepython -m azpysdktooling.New skills
.github/skills/fix-mypy/SKILL.md— fixes mypy type errors in any package; trigger:fix mypy issue <url> [in <pkg-path>] [using venv <path>].github/skills/fix-pylint/SKILL.md— fixes pylint warnings in any package; trigger:fix pylint issue <url> [in <pkg-path>] [using venv <path>].github/skills/fix-black/SKILL.md— new skill for auto-formatting with black; trigger:fix black issue <url> [in <pkg-path>] [using venv <path>]Key differences from
ml/skillsazure-ai-mlonlytox -e {check} --c .../tox.ini --root .python -m azpysdk {check} --pkg-path <path>All three skills prompt
"Please provide the package path (e.g. sdk/storage/azure-storage-blob)."when no path is given, and follow the same step-by-step structure (activate venv → install deps → run check → fix → verify → open PR).Original prompt
Overview
Create three new general-purpose Copilot skills under
.github/skills/that work for any Azure SDK for Python package (not justazure-ai-ml). These are modelled after the existing ML-specific skills in.github/skills/ml/fix-mypy/SKILL.mdand.github/skills/ml/fix-pylint/SKILL.md, but:sdk/storage/azure-storage-blob)python -m azpysdktooling instead oftoxfor running checksFiles to create
1.
.github/skills/fix-mypy/SKILL.mdA general mypy skill. Key differences from the ML version:
descriptionshould say it works for any Azure SDK for Python package, not just azure-ai-ml"fix mypy issue <issue-url> [in <package-path>] [using venv <path>]"python -m azpysdk mypyinstead oftox -e mypy --c ../../../eng/tox/tox.ini --root .python -m azpysdk mypy --pkg-path <package-path>python -m azpysdk mypy --pkg-path <package-path> -- path/to/file.py"Please provide the package path (e.g. sdk/storage/azure-storage-blob)."sdk/ml/azure-ai-mlazure-ai-ml2.
.github/skills/fix-pylint/SKILL.mdA general pylint skill. Key differences from the ML version:
descriptionworks for any Azure SDK for Python package"fix pylint issue <issue-url> [in <package-path>] [using venv <path>]"python -m azpysdk pylintinstead oftox -e pylint --c ../../../eng/tox/tox.ini --root .python -m azpysdk pylint --pkg-path <package-path>python -m azpysdk pylint --pkg-path <package-path> -- path/to/file.py3.
.github/skills/fix-black/SKILL.mdA brand-new black formatting skill. Structure it consistently with the other two skills:
Frontmatter:
Overview — intelligently fixes black formatting by:
Running Black:
python -m azpysdk black --pkg-path <package-path> --checkpython -m azpysdk black --pkg-path <package-path>python -m azpysdk black --pkg-path <package-path> -- path/to/file.pyReference Documentation:
Fixing Strategy (mirror the same Step 0–9 structure as the other skills):
--checkflag)--checkto auto-formatThis pull request was created from Copilot chat.
📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.