Allow open without context manager in return statement#14066
Merged
charliermarsh merged 1 commit intomainfrom Nov 3, 2024
Merged
Allow open without context manager in return statement#14066charliermarsh merged 1 commit intomainfrom
open without context manager in return statement#14066charliermarsh merged 1 commit intomainfrom
Conversation
open without context manager in return statement
Contributor
|
| code | total | + violation | - violation | + fix | - fix |
|---|---|---|---|---|---|
| SIM115 | 5 | 0 | 5 | 0 | 0 |
| RUF100 | 4 | 4 | 0 | 0 | 0 |
| D415 | 2 | 1 | 1 | 0 | 0 |
Linter (preview)
ℹ️ ecosystem check detected linter changes. (+5 -6 violations, +0 -0 fixes in 4 projects; 50 projects unchanged)
apache/airflow (+0 -3 violations, +0 -0 fixes)
ruff check --no-cache --exit-zero --ignore RUF9 --output-format concise --preview --select ALL
- airflow/utils/file.py:159:30: SIM115 Use a context manager for opening files - airflow/utils/file.py:161:16: SIM115 Use a context manager for opening files - dev/breeze/src/airflow_breeze/utils/console.py:86:16: SIM115 Use a context manager for opening files
bokeh/bokeh (+0 -2 violations, +0 -0 fixes)
ruff check --no-cache --exit-zero --ignore RUF9 --output-format concise --preview --select ALL
- src/bokeh/settings.py:820:34: SIM115 Use a context manager for opening files - src/bokeh/util/sampledata.py:158:12: SIM115 Use a context manager for opening files
zulip/zulip (+4 -1 violations, +0 -0 fixes)
ruff check --no-cache --exit-zero --ignore RUF9 --output-format concise --preview --select ALL
+ scripts/lib/zulip_tools.py:478:36: RUF100 [*] Unused `noqa` directive (unused: `SIM115`) + zerver/lib/test_helpers.py:267:65: RUF100 [*] Unused `noqa` directive (unused: `SIM115`) + zerver/lib/test_helpers.py:782:5: D400 First line should end with a period - zerver/lib/test_helpers.py:782:5: D400 First line should end with a period + zerver/views/upload.py:267:82: RUF100 [*] Unused `noqa` directive (unused: `SIM115`)
indico/indico (+1 -0 violations, +0 -0 fixes)
ruff check --no-cache --exit-zero --ignore RUF9 --output-format concise --preview
+ indico/core/storage/backend.py:231:61: RUF100 [*] Unused `noqa` directive (unused: `SIM115`)
Changes by rule (3 rules affected)
| code | total | + violation | - violation | + fix | - fix |
|---|---|---|---|---|---|
| SIM115 | 5 | 0 | 5 | 0 | 0 |
| RUF100 | 4 | 4 | 0 | 0 | 0 |
| D400 | 2 | 1 | 1 | 0 | 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #13862.