Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (pypa#2616)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Aug 1, 2023
1 parent 0a92036 commit 119c63e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ repos:
- id: prettier
args: ["--print-width=120", "--prose-wrap=always"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.0.280"
rev: "v0.0.281"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
4 changes: 2 additions & 2 deletions src/virtualenv/discovery/builtin.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def propose_interpreters(spec, try_first_with, app_data, env=None): # noqa: C90
path = os.path.abspath(py_exe)
try:
os.lstat(path) # Windows Store Python does not work with os.path.exists, but does for os.lstat
except OSError: # noqa: PERF203
except OSError:
pass
else:
yield PythonInfo.from_exe(os.path.abspath(path), app_data, env=env), True
Expand Down Expand Up @@ -145,7 +145,7 @@ def __repr__(self) -> str:
file_path = os.path.join(self.path, file_name)
if os.path.isdir(file_path) or not os.access(file_path, os.X_OK):
continue
except OSError: # noqa: PERF203
except OSError:
pass
content += " "
content += file_name
Expand Down
2 changes: 1 addition & 1 deletion src/virtualenv/discovery/windows/pep514.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def enum_keys(key):
while True:
try:
yield winreg.EnumKey(key, at)
except OSError: # noqa: PERF203
except OSError:
break
at += 1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def _generate_new_files(self):
rel = file.relative_to(self._image_dir)
if len(rel.parts) > 1:
continue
except ValueError: # noqa: PERF203
except ValueError:
pass
new_files.add(file)
return new_files
Expand Down
2 changes: 1 addition & 1 deletion src/virtualenv/seed/embed/via_app_data/via_app_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def _get(distribution, version):
)
if result is not None:
break
except Exception as exception: # noqa: PERF203
except Exception as exception:
logging.exception("fail")
failure = exception
if failure:
Expand Down

0 comments on commit 119c63e

Please sign in to comment.