refactor: remove redundant pylint disable from celery instrumentation#3839
Conversation
|
|
e00110a to
d501764
Compare
d501764 to
985b02f
Compare
…y-python-contrib into cleanup/remove-pylint-disable-celery
Pull request updated |
|
Please also do |
Hi! Thanks for the feedback — I’ve addressed the formatting issues |
tammy-baylis-swi
left a comment
There was a problem hiding this comment.
Thanks, lgtm! Others will also review
|
Please also add a Changelog entry. |
|
This PR has been automatically marked as stale because it has not had any activity for 14 days. It will be closed if no further activity occurs within 14 days of this comment. |
|
@tammy-baylis-swi Hi! |
tammy-baylis-swi
left a comment
There was a problem hiding this comment.
Lgtm again, a Maintainer (not me) will have to merge. Please resolve the latest merge conflict.
…lery' into cleanup/remove-pylint-disable-celery
- Add missing `Instrument` import in botocore __init__.py - Fix PLC0207 string split in boto3sqs __init__.py
|
|
This PR has been automatically marked as stale because it has not had any activity for 14 days. It will be closed if no further activity occurs within 14 days of this comment. |
|
This PR has been automatically marked as stale because it has not had any activity for 14 days. It will be closed if no further activity occurs within 14 days of this comment. |
Description
This PR removes the redundant
pylint: disable=attribute-defined-outside-initcomment from the celery instrumentation and adds this rule to the global pylint disable list in.pylintrc.The
attribute-defined-outside-initpylint rule is problematic for OpenTelemetry instrumentations because attributes are commonly set during instrumentation (in methods like_instrument()) rather than in__init__. This pattern is used throughout the codebase (30+ occurrences) and is a standard practice for OpenTelemetry instrumentations where attributes are initialized during the instrumentation process.By disabling this rule globally, we eliminate the need for individual
pylint: disablecomments across the codebase, making the code cleaner and more maintainable.Fixes #3828
Type of change
How Has This Been Tested?
attribute-defined-outside-inithas been added to the global pylint disable listDoes This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.