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

tc_build: kernel: Silence new ruff warning (SIM115) #280

Merged

Conversation

nathanchance
Copy link
Member

This is the same warning that we already disable for pylint, for the reasons outlined in the comment block above this.

tc_build/kernel.py:82:33: SIM115 Use a context manager for opening files
   |
80 |             # always cleaned up.
81 |             # pylint: disable-next=consider-using-with
82 |             kconfig_allconfig = NamedTemporaryFile(dir=self.folders.build)
   |                                 ^^^^^^^^^^^^^^^^^^ SIM115
83 |
84 |             configs_to_disable = ['DRM_WERROR', 'WERROR']
   |

Found 1 error.

This is the same warning that we already disable for pylint, for the
reasons outlined in the comment block above this.

  tc_build/kernel.py:82:33: SIM115 Use a context manager for opening files
     |
  80 |             # always cleaned up.
  81 |             # pylint: disable-next=consider-using-with
  82 |             kconfig_allconfig = NamedTemporaryFile(dir=self.folders.build)
     |                                 ^^^^^^^^^^^^^^^^^^ SIM115
  83 |
  84 |             configs_to_disable = ['DRM_WERROR', 'WERROR']
     |

  Found 1 error.

Signed-off-by: Nathan Chancellor <[email protected]>
@msfjarvis msfjarvis merged commit 1516e48 into ClangBuiltLinux:main Oct 21, 2024
7 checks passed
@nathanchance nathanchance deleted the silence-new-ruff-warning branch October 21, 2024 16:17
onettboots pushed a commit to onettboots/boolx-clang-build that referenced this pull request Oct 25, 2024
…ruff-warning

tc_build: kernel: Silence new ruff warning (SIM115)

Signed-off-by: onettboots <[email protected]>
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.

2 participants