Skip to content

Commit

Permalink
Merge pull request #1119 from scop/renovate/ruff
Browse files Browse the repository at this point in the history
chore(pre-commit): update ruff to v0.3.0
  • Loading branch information
scop authored Mar 5, 2024
2 parents 827c3d1 + 1c42c79 commit df6bcf2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion test/requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
-r requirements.txt

mypy==1.8.0
ruff==0.2.2
ruff==0.3.0
12 changes: 6 additions & 6 deletions test/t/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit df6bcf2

Please sign in to comment.