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: Fix public_interface not catching all constants and enable Path rules (ruff 0.261) #3091

Merged
merged 6 commits into from
Apr 6, 2023

Conversation

aahung
Copy link
Contributor

@aahung aahung commented Apr 5, 2023

Issue #, if available

Description of changes

  • enable PTH check (favor pathlib over os.path)
  • fix public_interface cannot find all constants (use AST to scan instead of findmembers)

Description of how you validated changes

Checklist

Examples?

Please reach out in the comments if you want to add an example. Examples will be
added to sam init through aws/aws-sam-cli-app-templates.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@aahung aahung changed the title chore: Upgrade ruff to 0.0.261 and enable Path rules chore: Fix public_interface not catching all constants and enable Path rules (ruff 0.261) Apr 5, 2023
@aahung aahung marked this pull request as ready for review April 5, 2023 23:53
@aahung aahung requested a review from a team as a code owner April 5, 2023 23:53
@aahung aahung enabled auto-merge (squash) April 5, 2023 23:59
@aahung aahung merged commit c7ce556 into aws:develop Apr 6, 2023
@aahung aahung deleted the upgrade-ruff branch April 6, 2023 15:32
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.

None yet

3 participants