-
Notifications
You must be signed in to change notification settings - Fork 10
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
dev: Add Ruff Perf rules to worker #552
Conversation
Codecov ReportAttention: Patch coverage is ✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #552 +/- ##
=======================================
Coverage 97.51% 97.51%
=======================================
Files 420 420
Lines 35411 35389 -22
=======================================
- Hits 34530 34509 -21
+ Misses 881 880 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #552 +/- ##
=======================================
Coverage 97.51% 97.51%
=======================================
Files 420 420
Lines 35411 35389 -22
=======================================
- Hits 34530 34509 -21
+ Misses 881 880 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #552 +/- ##
=======================================
Coverage 97.51% 97.51%
=======================================
Files 420 420
Lines 35411 35389 -22
=======================================
- Hits 34530 34509 -21
+ Misses 881 880 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov ReportAttention: Patch coverage is
Changes have been made to critical files, which contain lines commonly executed in production. Learn more ✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #552 +/- ##
=======================================
Coverage 97.53% 97.53%
=======================================
Files 451 451
Lines 36133 36111 -22
=======================================
- Hits 35242 35221 -21
+ Misses 891 890 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Purpose/Motivation
Part of the lint enhancement epic, this PR aims to add the Perflint PERF rules, with the fixes majorly being around creating list comprehensions or using .keys() or .values() instead of .items() for dictionaries
These can be found here:
Links to relevant tickets
Closes codecov/engineering-team#2050
What does this PR do?
This PR adds the rules listed above and fixes any errors that stemmed from them.
Legal Boilerplate
Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.