Skip to content
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

chore(ci): enable Ruff rules PLW, PLR, PLC and PLE and fix the errors #2593

Merged
merged 2 commits into from
Jun 27, 2023

Conversation

leandrodamascena
Copy link
Contributor

Issue number: #2532

Summary

Changes

Enabling Ruff rules

User experience

Please share what the user experience looks like before and after this change

Checklist

If your change doesn't seem to apply, please leave them unchecked.

Is this a breaking change?

RFC issue number:

Checklist:

  • Migration process documented
  • Implement warnings (if it can live side by side)

Acknowledgment

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@leandrodamascena leandrodamascena requested a review from a team June 27, 2023 13:43
@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jun 27, 2023
@leandrodamascena leandrodamascena linked an issue Jun 27, 2023 that may be closed by this pull request
@github-actions github-actions bot added the internal Maintenance changes label Jun 27, 2023
@codecov-commenter
Copy link

codecov-commenter commented Jun 27, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (fea3f6a) 97.21% compared to head (9c2b585) 97.22%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2593   +/-   ##
========================================
  Coverage    97.21%   97.22%           
========================================
  Files          158      160    +2     
  Lines         7370     7393   +23     
  Branches       537      537           
========================================
+ Hits          7165     7188   +23     
  Misses         158      158           
  Partials        47       47           
Impacted Files Coverage Δ
aws_lambda_powertools/logging/compat.py 100.00% <ø> (ø)
aws_lambda_powertools/logging/logger.py 99.44% <ø> (ø)
aws_lambda_powertools/metrics/base.py 100.00% <ø> (ø)
aws_lambda_powertools/tracing/tracer.py 100.00% <ø> (ø)
aws_lambda_powertools/utilities/batch/base.py 94.08% <ø> (ø)
...s/utilities/data_classes/dynamo_db_stream_event.py 98.13% <ø> (ø)
...da_powertools/utilities/jmespath_utils/__init__.py 100.00% <ø> (ø)
...bda_powertools/utilities/parser/models/dynamodb.py 100.00% <ø> (ø)
...s_lambda_powertools/utilities/parser/models/sqs.py 100.00% <ø> (ø)
...ambda_powertools/utilities/validation/validator.py 100.00% <ø> (ø)
... and 6 more

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@rubenfonseca
Copy link
Contributor

Looking at this now

@rubenfonseca rubenfonseca self-assigned this Jun 27, 2023
Copy link
Contributor

@rubenfonseca rubenfonseca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@rubenfonseca rubenfonseca merged commit 4f343c4 into aws-powertools:develop Jun 27, 2023
rafaelgsr pushed a commit to rafaelgsr/aws-lambda-powertools-python that referenced this pull request Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
event_handlers internal Maintenance changes metrics size/M Denotes a PR that changes 30-99 lines, ignoring generated files. tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable Ruff rules PLW, PLR, PLC and PLE and fix the errors
3 participants