From 71c638da85be4edde6d5d45e8dc2f79ce9575d76 Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Tue, 10 Dec 2024 11:11:53 -0700 Subject: [PATCH] Update versions for pre-commit hooks --- .pre-commit-config.yaml | 4 ++-- zeekpkg/manager.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index aa3a70e..38081a3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: trailing-whitespace exclude: testing/baselines @@ -11,7 +11,7 @@ repos: - id: check-yaml - id: check-added-large-files - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.2 + rev: v0.8.2 hooks: - id: ruff args: [--fix] diff --git a/zeekpkg/manager.py b/zeekpkg/manager.py index 93ef5ea..623b6e8 100644 --- a/zeekpkg/manager.py +++ b/zeekpkg/manager.py @@ -2068,8 +2068,8 @@ def __str__(self): continue # Suggestion status propagates to 'depends' field of suggested packages. - is_suggestion = ( - node.is_suggestion or dep_name in ds and dep_name not in dd + is_suggestion = node.is_suggestion or ( + dep_name in ds and dep_name not in dd ) # If a dependency can be fulfilled by a built-in package