Charlie Marsh
|
71a122f060
|
Allow open without context manager in return statement (#14066)
## Summary
Closes https://github.com/astral-sh/ruff/issues/13862.
|
2024-11-03 14:16:27 -05:00 |
|
Steve C
|
0b5828a1e8
|
[flake8-simplify ] - extend open-file-with-context-handler to work with dbm.sqlite3 (SIM115 ) (#13104)
## 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`
|
2024-08-26 08:11:03 +01:00 |
|
Steve C
|
d37e2e5d33
|
[flake8-simplify ] Extend open-file-with-context-handler to work with other standard-library IO modules (SIM115 ) (#12959)
Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
|
2024-08-22 14:18:55 +01:00 |
|
Charlie Marsh
|
a38c05bf13
|
Avoid recommending context manager in __enter__ implementations (#11575)
## Summary
Closes https://github.com/astral-sh/ruff/issues/11567.
|
2024-05-28 01:44:24 +00:00 |
|
Harutaka Kawamura
|
f670f9b22c
|
[SIM115] Allow open followed by close (#7916)
|
2023-10-11 13:53:48 +00:00 |
|
Charlie Marsh
|
5849a75223
|
Rename ruff crate to ruff_linter (#7529)
|
2023-09-20 08:38:27 +02:00 |
|