Skip to content

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

Merged
AlexWaygood merged 1 commit intoastral-sh:mainfrom
diceroll123:extend-sim115-for-py3.13
Aug 26, 2024
Merged

[flake8-simplify] - extend open-file-with-context-handler to work with dbm.sqlite3 (SIM115)#13104
AlexWaygood merged 1 commit intoastral-sh:mainfrom
diceroll123:extend-sim115-for-py3.13

Conversation

@diceroll123
Copy link
Copy Markdown
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

@github-actions
Copy link
Copy Markdown
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Copy link
Copy Markdown
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
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