Skip to content

Enable flake8-comprehensions #1353

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

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

TimPansino
Copy link
Contributor

Overview

  • Enable flake8-comprehensions linter in ruff.
  • Fix all rule violations for flake8-comprehensions.

@TimPansino TimPansino requested a review from a team as a code owner April 11, 2025 21:11
Copy link

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ ACTION actionlint 5 0 0 0.47s
✅ MARKDOWN markdownlint 7 0 0 0 1.04s
✅ MARKDOWN markdown-link-check 7 0 0 17.17s
✅ PYTHON ruff 893 0 0 0 0.55s
✅ PYTHON ruff-format 893 0 0 0 0.26s
✅ YAML prettier 11 0 0 0 1.15s
✅ YAML v8r 11 0 0 5.27s
✅ YAML yamllint 11 0 0 0.54s

See detailed report in MegaLinter reports

MegaLinter is graciously provided by OX Security

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 65.38462% with 9 lines in your changes missing coverage. Please review.

Project coverage is 81.04%. Comparing base (687d47c) to head (195b4fe).

Files with missing lines Patch % Lines
newrelic/api/graphql_trace.py 0.00% 2 Missing ⚠️
newrelic/api/database_trace.py 0.00% 1 Missing ⚠️
newrelic/api/datastore_trace.py 0.00% 1 Missing ⚠️
newrelic/api/external_trace.py 0.00% 1 Missing ⚠️
newrelic/api/memcache_trace.py 0.00% 1 Missing ⚠️
newrelic/api/message_trace.py 0.00% 1 Missing ⚠️
newrelic/api/solr_trace.py 0.00% 1 Missing ⚠️
newrelic/api/time_trace.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1353      +/-   ##
==========================================
- Coverage   81.07%   81.04%   -0.03%     
==========================================
  Files         204      204              
  Lines       22822    22822              
  Branches     3618     3618              
==========================================
- Hits        18502    18497       -5     
- Misses       3120     3124       +4     
- Partials     1200     1201       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants