-
Notifications
You must be signed in to change notification settings - Fork 117
Enable pylint #1352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable pylint #1352
Conversation
🦙 MegaLinter status: ✅ SUCCESS
See detailed report in MegaLinter reports |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1352 +/- ##
==========================================
- Coverage 81.07% 81.06% -0.02%
==========================================
Files 204 204
Lines 22830 22832 +2
Branches 3618 3618
==========================================
- Hits 18510 18508 -2
- Misses 3120 3123 +3
- Partials 1200 1201 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
fcefe8f
to
e861cb3
Compare
e861cb3
to
66cfd5d
Compare
@@ -349,7 +349,6 @@ def gethostname(use_dyno_names=False, dyno_shorten_prefixes=()): | |||
""" | |||
|
|||
global _nr_cached_hostname | |||
global _nr_cached_hostname_lock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why remove these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PLW0602 - global-variable-not-assigned
There's no need to make this variable global when it's never assigned to. It already reads the globally scoped variable when attempting to use the lock.
@@ -363,7 +360,7 @@ def connect_payload_asserts( | |||
], | |||
) | |||
def test_connect(with_aws, with_ecs, with_pcf, with_gcp, with_azure, with_docker, with_kubernetes, with_ip): | |||
global AWS, AZURE, GCP, PCF, BOOT_ID, DOCKER, KUBERNETES, IP_ADDRESS | |||
global AWS, AZURE, GCP, PCF, DOCKER, KUBERNETES, IP_ADDRESS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was BOOT_ID dropped from being a global?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -36,7 +36,6 @@ | |||
|
|||
|
|||
def cat_response_handler(self): | |||
global CAT_RESPONSE_CODE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question as the others about this global.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: Hannah Stepanek <hstepanek@newrelic.com>
Overview
pylint
rules inruff
.pylint
recommendations for now, potentially re-enable later.pylint
rule violations.