Skip to content

refactor(typing): enable TCH, UP and FA100 ruff rules#5017

Merged
leandrodamascena merged 2 commits into
aws-powertools:v3from
ericbn:enable_ruff_rules
Aug 19, 2024
Merged

refactor(typing): enable TCH, UP and FA100 ruff rules#5017
leandrodamascena merged 2 commits into
aws-powertools:v3from
ericbn:enable_ruff_rules

Conversation

@ericbn

@ericbn ericbn commented Aug 19, 2024

Copy link
Copy Markdown
Contributor

Issue number: #5016

Summary

Changes

Enable TCH, UP and FA100 rules in the Ruff linter.

User experience

Discussed in #4607

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.

@ericbn ericbn requested a review from a team August 19, 2024 11:41
@boring-cyborg boring-cyborg Bot added commons documentation Improvements or additions to documentation event_handlers logger metrics tests typing Static typing definition related issues (mypy, pyright, etc.) labels Aug 19, 2024
@pull-request-size pull-request-size Bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Aug 19, 2024
Comment thread tests/functional/data_masking/test_aws_encryption_sdk.py
Comment thread examples/batch_processing/src/context_manager_access.py
@leandrodamascena leandrodamascena linked an issue Aug 19, 2024 that may be closed by this pull request
2 tasks
@github-actions github-actions Bot added enhancement and removed documentation Improvements or additions to documentation labels Aug 19, 2024
@boring-cyborg boring-cyborg Bot added the documentation Improvements or additions to documentation label Aug 19, 2024
@sonarqubecloud

Copy link
Copy Markdown

Comment thread aws_lambda_powertools/event_handler/openapi/types.py
@github-actions github-actions Bot removed the documentation Improvements or additions to documentation label Aug 19, 2024

@leandrodamascena leandrodamascena left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hi @ericbn! Just a few comments that you probably won't need to do anything about.
I'm just waiting for the CI to turn green to approve this PR!

Comment thread aws_lambda_powertools/event_handler/openapi/types.py
Comment thread aws_lambda_powertools/event_handler/bedrock_agent.py
Comment thread aws_lambda_powertools/utilities/batch/__init__.py
Comment thread aws_lambda_powertools/utilities/typing/lambda_client_context.py
Comment thread examples/batch_processing/src/context_manager_access.py
Comment thread tests/functional/data_masking/test_aws_encryption_sdk.py
@leandrodamascena leandrodamascena self-requested a review August 19, 2024 12:13

@leandrodamascena leandrodamascena left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

APPROVED!

@leandrodamascena leandrodamascena merged commit 85d5253 into aws-powertools:v3 Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commons enhancement event_handlers logger metrics size/L Denotes a PR that changes 100-499 lines, ignoring generated files. tests typing Static typing definition related issues (mypy, pyright, etc.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Technical Debt: Enable TCH, UP and FA100 rules in the Ruff linter

2 participants