fix-pylint
Skill5.6k starsChanged 21 months agoMITView on GitHub
Automatically fix pylint issues in any Azure SDK for Python package following Azure SDK Python guidelines and existing code patterns.
- Installs packages
Trending
Quiet since April.thin dataabout the whole repository
Who's talking about Azure/azure-sdk-for-python
- apache/airflow“Add Python 3.11 support”GitHub · Oct 25, 2022 · 24 reactions
- Azure/azure-sdk-for-net“[FEATURE REQ] Custom Events in Application Insights using azure-monitor-opentelemetry”GitHub · Feb 23, 2024 · 14 reactions
- hashicorp/terraform-provider-azurerm“custom_domain configuration for azurerm_storage_account not working as expected, when using Indirect CNAME …”GitHub · Jul 26, 2021 · 13 reactions
- Azure/azure-rest-api-specs“[BUG] [API Management] polling response didn't respect the format in new api version”GitHub · May 30, 2025 · 8 reactions
- Azure/azure-cli“az vm create --no-wait fails with "Extra data: line 1 column 4 (char 3)"”GitHub · Apr 8, 2026 · 6 reactions
The biggest 5 of 13 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 13
Talked about on GitHub, Hacker News and Bluesky (13 times).
On GitHub · 11
- Oct 25, 2022Add Python 3.11 support — apache/airflow24 reactions · 31 comments
- Feb 23, 2024[FEATURE REQ] Custom Events in Application Insights using azure-monitor-opentelemetry — Azure/azure-sdk-for-net14 reactions · 17 comments
- Jul 26, 2021custom_domain configuration for azurerm_storage_account not working as expected, when using Indirect CNAME validation — hashicorp/terraform-provider-azurerm13 reactions · 6 comments
- May 30, 2025[BUG] [API Management] polling response didn't respect the format in new api version — Azure/azure-rest-api-specs8 reactions · 1 comment
- Apr 8, 2026az vm create --no-wait fails with "Extra data: line 1 column 4 (char 3)" — Azure/azure-cli6 reactions · 8 comments
6 more on GitHub
- Aug 16, 2022Ignore existing resources within a subscription — Azure/azure-rest-api-specs6 reactions · 6 comments
- Dec 4, 2020Fix azure service bus integration with service bus library 7.0 — celery/kombu6 reactions
- Dec 12, 2023[CostManagement] `x-ms-pageable` not enabled for `Query_Usage` — Azure/azure-rest-api-specs5 reactions · 2 comments
- May 20, 2020Could not install package via pip. Dependency error. — michiya/azure-storage-logging5 reactions
- Mar 26, 2020Add a common AzureKeyCredential to Azure Core — Azure/azure-sdk5 reactions · 8 comments
- Jul 17, 2023Resources of type `"Microsoft.Network/publicIPAddresses"` does not include the `"zones"` field. — Azure/azure-rest-api-specs4 reactions · 1 comment
On Hacker News · 1
- May 3, 2024Azure SDK is over 500 MB and growing on each release4 points · 3 comments
On Bluesky · 1
- Sep 11, 2025📦 Azure / azure-sdk-for-python ⭐ 5,071 (+1) 🗒 Python This repository is for active development of the Azure SDK for Python. For consumers… — @github-trending.bsky.social1 likes and repost
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- agentic-workflowsSkill
- azsdk-common-apiview-feedback-resolutionSkill
- azsdk-common-generate-sdk-locallySkill
- azsdk-common-pipeline-analysisSkill
- azsdk-common-pipeline-fixerSkill
- azsdk-common-prepare-release-planSkill
- azsdk-common-sdk-breaking-changeSkill
- azsdk-common-sdk-releaseSkill
- create-api-reviewSkill
- create-package-skillSkill
- find-package-skillSkill
- fix-blackSkill
- fix-mypySkill
- fix-sphinxSkill
- generate-api-markdownSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. About 0 are common, 16 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈16
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 58
Ask: "Please provide either the GitHub issue URL or the package path (e.g.
- Distinctive: line 61
Read the issue to understand which package and files/modules are affected, and the specific warnings to fix.
- Distinctive: line 64
Run pylint checks directly on the package.
- Distinctive: line 67
Ask: "Do you have an existing virtual environment path, or should I create 'env'?"
- Distinctive: line 142
Before fixing, search the codebase for how similar issues are handled:
- Distinctive: line 148
Use the existing code patterns to ensure consistency.
- Distinctive: line 154
Use existing file patterns as reference Follow Azure SDK Python guidelines Make minimal, targeted changes
- Distinctive: line 155
Follow Azure SDK Python guidelines Make minimal, targeted changes
- Distinctive: line 160
Create new files for solutions Import non-existent modules Add new dependencies or imports Make unnecessary large changes Change code style …
- Distinctive: line 162
Add new dependencies or imports Make unnecessary large changes Change code style without clear reason Delete code without clear …
- Distinctive: line 165
Delete code without clear justification
- Distinctive: line 171
No new warnings were introduced
- Distinctive: line 187
Create a pull request with a descriptive title and body referencing the issue.
- Distinctive: line 191
Always read the existing code to understand patterns before making changes
- Distinctive: line 192
Prefer following existing patterns over strict rule compliance
- Distinctive: line 193
If unsure about a fix, mark it for manual review
- Distinctive: line 195
Test the code after fixing to ensure functionality is preserved
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Fix Pylint Issues Skill
This skill automatically fixes pylint warnings in any Azure SDK for Python package by analyzing existing code patterns and applying fixes with 100% confidence.
Overview
Intelligently fixes pylint issues by:
- Getting the package path or GitHub issue URL from the user
- Reading and analyzing the issue details (if issue URL provided)
- Setting up or using existing virtual environment
- Installing required dependencies
- Running pylint on the package
- Analyzing the pylint output to identify warnings
- Searching codebase for existing patterns to follow
- Applying fixes only with 100% confidence
- Re-running pylint to verify fixes
- Creating a pull request
- Providing a summary of what was fixed
Running Pylint
Command:
cd <package-path>
azpysdk --isolate pylint .Note:
azpysdk pylintruns with a pinned version of pylint at the package level only. To focus on specific files, run the full check and filter the output by file path.
Using Latest Pylint:
azpysdk --isolate next-pylint .Use
azpysdk next-pylintto run with the latest version of pylint. This is useful for catching issues that may be flagged by newer pylint versions.
Reference Documentation
Fixing Strategy
Step 0: Get Package and Issue Details
Check if user provided in their request:
- GitHub issue URL (look for
https://github.com/Azure/azure-sdk-for-python/issues/...in user's message) - Package path or name (e.g.
sdk/storage/azure-storage-bloborazure-storage-blob) - Virtual environment path (look for phrases like "using venv", "use env", "virtual environment at", or just the venv name)
If both GitHub issue URL and package path are missing: Ask: "Please provide either the GitHub issue URL or the package path (e.g. sdk/storage/azure-storage-blob) for the pylint problems you want to fix."
If a GitHub issue URL is provided: Read the issue to understand which package and files/modules are affected, and the specific warnings to fix.
If only a package path is provided: Run pylint checks directly on the package.
If virtual environment is missing: Ask: "Do you have an existing virtual environment path, or should I create 'env'?"
Step 1: CRITICAL - Activate Virtual Environment FIRST
IMMEDIATELY activate the virtual environment before ANY other command:
# Activate the provided virtual environment (e.g., env, venv)
.\<venv-name>\Scripts\Activate.ps1
# If creating new virtual environment:
python -m venv env
.\env\Scripts\Activate.ps1⚠️ IMPORTANT: ALL subsequent commands MUST run within the activated virtual environment. Never run commands outside the venv.
Step 2: Install Dependencies (within activated venv)
# Navigate to the package directory (within activated venv)
cd <package-path>
# Install dev dependencies from dev_requirements.txt (within activated venv)
pip install -r dev_requirements.txt
# Install the package in editable mode (within activated venv)
pip install -e .Step 3: Identify Target Files (within activated venv)
Based on the GitHub issue details, determine which files to check:
Option A - Run pylint on the package and filter output:
# Ensure you're in the package directory (within activated venv)
cd <package-path>
# Run pylint on the full package, then filter output for files from the issue
azpysdk --isolate pylint .
# Review output for warnings in the specific files/modules mentioned in the issueOption B - Check modified files (if no specific target):
git diff --name-only HEAD | Select-String "<package-path>"
git diff --cached --name-only | Select-String "<package-path>"Step 4: Run Pylint (within activated venv)
Important: Do not run black as part of the pylint fix workflow. Running black will reformat the code and may mask or change the pylint warnings you are trying to fix. Only run pylint to identify and fix the specific warnings.
⚠️ Ensure virtual environment is still activated before running:
# Navigate to the package directory
cd <package-path>
# Run pylint on the package (within activated venv)
azpysdk --isolate pylint .
# Filter output for the specific files/modules from the issueStep 5: Analyze Warnings
Parse the pylint output to identify:
- Warning type and code (e.g., C0103, W0212, R0913)
- File path and line number
- Specific issue description
- Cross-reference with the GitHub issue (if provided) to ensure you're fixing the right problems
Step 6: Search for Existing Patterns
Before fixing, search the codebase for how similar issues are handled:
# Example: Search for similar function patterns
grep -r "pattern" <package-path>/Use the existing code patterns to ensure consistency.
Step 7: Apply Fixes (ONLY if 100% confident)
ALLOWED ACTIONS: Fix warnings with 100% confidence Use existing file patterns as reference Follow Azure SDK Python guidelines Make minimal, targeted changes
FORBIDDEN ACTIONS: Fix warnings without complete confidence Create new files for solutions Import non-existent modules Add new dependencies or imports Make unnecessary large changes Change code style without clear reason Delete code without clear justification
Step 8: Verify Fixes
Re-run pylint to ensure:
- The warning is resolved
- No new warnings were introduced
- The code still functions correctly
Step 9: Summary
Provide a summary:
- GitHub issue being addressed
- Number of warnings fixed
- Number of warnings remaining
- Types of fixes applied
- Any warnings that need manual review
Step 10: Create Pull Request
⚠️ REQUIRED when a GitHub issue URL was provided: You MUST create a pull request after validating fixes. This is not optional.
Create a pull request with a descriptive title and body referencing the issue. Include what was fixed and confirm all pylint checks pass. The PR title should follow the format: "fix(<package-name>): Resolve pylint errors (#<issue-number>)".
Notes
- Always read the existing code to understand patterns before making changes
- Prefer following existing patterns over strict rule compliance
- If unsure about a fix, mark it for manual review
- Some warnings may require architectural changes - don't force fixes
- Test the code after fixing to ensure functionality is preserved
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

