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

Lint botocore and s3transfer with --unsafe-fixes #9408

Merged
merged 4 commits into from
Apr 3, 2025

Conversation

kdaily
Copy link
Member

@kdaily kdaily commented Mar 28, 2025

Issue #, if available:

Description of changes:

Ran ruff check --fix --unsafe-fixes. Separated into three commits:

  1. f-string formatting (fixes UP030, UP031, and UP032).
  2. Use of super() (fixes UP008)
  3. Miscellaneous unsafe fixes.

The miscellaneous fixes include (but not limited to):

The miscellaneous fixes were compared against botocore and unless otherwise noted they are already fixed in the same manner there.

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

@kdaily kdaily force-pushed the lint-unsafe-botocore-s3transfer branch from d1bcc81 to 9d40c18 Compare March 28, 2025 17:02
@kdaily kdaily marked this pull request as ready for review March 28, 2025 17:17
In `tests/functional/botocore/test_endpoint_rulesets.py`, the lines
removed are used upstream to mark tests to be skipped. This is not
required for AWS CLI v2 since AWS CRT is always installed as a
dependency:

https://github.com/boto/botocore/blob/a867a74b0d003c8cb8bfb4abc8f6e6d35bb792e4/tests/functional/test_endpoint_rulesets.py#L174-L189

In `tests/unit/botocore/test_credentials.py`, these lines are simply
unused, and are not upstream either. Safe to remove.
@kdaily kdaily requested a review from aemous March 31, 2025 19:45
Copy link
Contributor

@aemous aemous left a comment

Choose a reason for hiding this comment

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

Approved with a couple non-blocking questions. Overall LGTM

@kdaily kdaily merged commit e25dda2 into v2 Apr 3, 2025
90 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants