Fix azure-appconfiguration linting for pylint 4.0.6 - #48266
Fix azure-appconfiguration linting for pylint 4.0.6#48266Ali Satwat Khan (alisatwat3) wants to merge 14 commits into
Conversation
|
Thank you for your contribution Ali Satwat Khan (@alisatwat3)! We will review the pull request and get back to you soon. |
|
Azure Pipelines: Successfully started running 1 pipeline(s). 8 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
Pull request overview
Updates azure-appconfiguration for Pylint 4.0.6 compatibility without runtime or API changes.
Changes:
- Adds constructor parameter documentation.
- Applies targeted lint suppressions for intentional
**kwargsand private test imports. - Preserves existing runtime behavior.
Reviewed changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
tests/test_sync_token_policy.py |
Allows private implementation imports in tests. |
tests/test_query_param_policy.py |
Allows private policy import. |
tests/test_http.py |
Allows private HTTP helper imports. |
tests/test_consistency.py |
Allows generated model imports. |
tests/test_azure_appconfiguration_client.py |
Allows private policy import. |
tests/test_azure_appconfiguration_client_async.py |
Allows private policy import. |
tests/test_audience.py |
Allows private audience helper import. |
tests/test_audience_policy.py |
Allows private policy import. |
tests/test_audience_error_handling_live.py |
Allows private policy import in live tests. |
tests/test_audience_error_handling_live_async.py |
Allows private policy import in async live tests. |
aio/_sync_token_async.py |
Suppresses intentional keyword-doc linting. |
aio/_azure_appconfiguration_client_async.py |
Suppresses intentional keyword-doc linting. |
_sync_token.py |
Suppresses intentional keyword-doc linting. |
_models.py |
Adds model constructor documentation. |
_azure_appconfiguration_requests.py |
Documents policy constructor parameters. |
_azure_appconfiguration_client.py |
Suppresses intentional keyword-doc linting. |
_audience_error_handling_policy.py |
Documents the audience-state parameter. |
|
@microsoft-github-policy-service agree |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…uration-pylint-4.0.6
There was a problem hiding this comment.
🟢 Ready to approve
The changes are narrowly scoped lint annotations consistent with the documented intent and introduce no behavioral changes.
This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.
Review details
- Files reviewed: 12/12 changed files
- Comments generated: 0 new
- Review effort level: Medium
We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.
There was a problem hiding this comment.
🟡 Not ready to approve
The client-level pragmas should be narrowed so they do not hide future method documentation violations.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.
Review details
Comments suppressed due to low confidence (2)
sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/_azure_appconfiguration_client.py:48
- This pragma is scoped to the entire class, so it also suppresses this documentation check for every method added below. Since only the constructor/class docstring intentionally documents values accepted through
**kwargs, usedisable-nextfor the class declaration to keep future method docstrings linted.
class AzureAppConfigurationClient: # pylint: disable=docstring-keyword-should-match-keyword-only
sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/aio/_azure_appconfiguration_client_async.py:49
- This pragma is scoped to the entire class, so it also suppresses this documentation check for every async client method. Limit it to the class declaration with
disable-next; that still covers the intentional constructor**kwargsdocumentation without hiding future method violations.
class AzureAppConfigurationClient: # pylint: disable=docstring-keyword-should-match-keyword-only
- Files reviewed: 2/2 changed files
- Comments generated: 0 new
- Review effort level: Balanced
We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.
There was a problem hiding this comment.
🟢 Ready to approve
The narrow lint suppressions are consistent with the documented intentional **kwargs API and introduce no runtime changes.
This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 0 new
- Review effort level: Balanced
We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.
There was a problem hiding this comment.
🟢 Ready to approve
The narrow lint suppressions correctly address the documented constructor kwargs without changing behavior.
This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 0 new
- Review effort level: Balanced
We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.
There was a problem hiding this comment.
🟢 Ready to approve
Both changes are narrow lint suppressions matching the intentional documented **kwargs API pattern.
This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 0 new
- Review effort level: Balanced
We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.
There was a problem hiding this comment.
🟢 Ready to approve
The suppressions are narrowly scoped, consistent, and do not affect runtime behavior.
This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 0 new
- Review effort level: Balanced
We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.
There was a problem hiding this comment.
🟢 Ready to approve
The targeted suppressions accurately cover intentional keyword documentation without changing behavior.
This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 0 new
- Review effort level: Balanced
We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.
There was a problem hiding this comment.
🟢 Ready to approve
The narrow lint suppressions consistently address the intended warning without affecting behavior.
This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 0 new
- Review effort level: Balanced
We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.
Description
Fixes #48262
Updates
azure-appconfigurationfor compatibility with Pylint 4.0.6 and Azure Pylint Guidelines Checker 0.5.9.Changes include:
**kwargs.Validation:
git diff --check: passedAll SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines