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

[flake8-simplify] - extend open-file-with-context-handler to work with dbm.sqlite3 (SIM115) #13104

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

diceroll123
Copy link
Contributor

Summary

Adds upcoming dbm.sqlite3 to rule that suggests using context managers to open things with.

See: https://docs.python.org/3.13/library/dbm.html#module-dbm.sqlite3

Test Plan

cargo test

Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

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

Nice!

@AlexWaygood AlexWaygood added rule Implementing or modifying a lint rule preview Related to preview mode features labels Aug 26, 2024
@AlexWaygood AlexWaygood merged commit 0b5828a into astral-sh:main Aug 26, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
preview Related to preview mode features rule Implementing or modifying a lint rule
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants