diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6ba23822938..48939757fe3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -43,7 +43,7 @@ repos: pass_filenames: false - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.2.2 + rev: v0.3.0 hooks: - id: ruff types: [text] diff --git a/test/requirements-dev.txt b/test/requirements-dev.txt index 7051ab7e2cf..b822c0fa75c 100644 --- a/test/requirements-dev.txt +++ b/test/requirements-dev.txt @@ -3,4 +3,4 @@ -r requirements.txt mypy==1.8.0 -ruff==0.2.2 +ruff==0.3.0 diff --git a/test/t/conftest.py b/test/t/conftest.py index 874ef1cdbe0..cb279cc2b84 100644 --- a/test/t/conftest.py +++ b/test/t/conftest.py @@ -601,9 +601,9 @@ def _check_variable(self, varname: str): def _unprotect_variable(self, varname: str): if varname not in self.saved_variables: - self.saved_variables[ - varname - ] = bash_env_saved.saved_state.ChangesDetected + self.saved_variables[varname] = ( + bash_env_saved.saved_state.ChangesDetected + ) self._copy_variable( varname, "%s_OLDVAR_%s" % (self.prefix, varname) ) @@ -695,9 +695,9 @@ def write_variable(self, varname: str, new_value: str, quote: bool = True): def save_variable(self, varname: str): self._unprotect_variable(varname) - self.saved_variables[ - varname - ] = bash_env_saved.saved_state.ChangesIgnored + self.saved_variables[varname] = ( + bash_env_saved.saved_state.ChangesIgnored + ) # TODO: We may restore the "export" attribute as well though it is # not currently tested in "diff_env"