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

Bump pyupgrade pre-commit to latest version #184

Merged
merged 2 commits into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,4 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.7'
- uses: pre-commit/[email protected]
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repos:
hooks:
- id: black
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
rev: v3.15.1
hooks:
- id: pyupgrade
args: ["--py37-plus"]
Expand Down
4 changes: 2 additions & 2 deletions zeekpkg/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ def __init__(
# We try to remove the old bin_dir. That may not succeed in case
# it wasn't actually managed by us, but that's ok.
os.rmdir(prev_bin_dir)
except os.error:
except OSError:
pass

if need_manifest_update:
Expand Down Expand Up @@ -1362,7 +1362,7 @@ def remove(self, pkg_path):
try:
LOG.debug("removing link %s", link)
os.unlink(link)
except os.error as err:
except OSError as err:
LOG.warn("cannot remove link for %s", err)

del self.installed_pkgs[pkg_to_remove.name]
Expand Down
Loading