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

Fix CI: Run new version of black. #649

Merged
merged 1 commit into from
Feb 5, 2025
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: 1 addition & 1 deletion notus/scanner/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def hashsum_verificator(
return lambda _: VerificationResult.SUCCESS

def on_hash_sum_verification_failure(
_: Optional[Dict[str, str]]
_: Optional[Dict[str, str]],
) -> Dict[str, str]:
raise Sha256SumLoadingError(
f"Unable to verify signature of {sha_sum_file_path}"
Expand Down
2 changes: 1 addition & 1 deletion notus/scanner/loader/gpg_sha_verifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class VerificationResult(Enum):


def create_verify(
sha256sums: Callable[[], Dict[str, str]]
sha256sums: Callable[[], Dict[str, str]],
) -> Callable[[Path], VerificationResult]:
"""
create_verify is returning a closure based on the sha256sums.
Expand Down
1 change: 1 addition & 0 deletions notus/scanner/models/packages/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class PackageComparison(Enum):
@dataclass
class Package:
"Base class for different Package types"

name: str
full_name: str
full_version: str
Expand Down
3 changes: 1 addition & 2 deletions tests/cli/test_cli_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
#
# SPDX-License-Identifier: AGPL-3.0-or-later

""" Test module for command line arguments.
"""
"""Test module for command line arguments."""

import tempfile
import unittest
Expand Down
Loading