From 9322f7a751aac5d302832095dbfccd492453c1ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ricks?= Date: Mon, 10 Feb 2025 09:27:36 +0100 Subject: [PATCH] Update formatting for latest version of black --- pontos/github/_parser.py | 2 +- pontos/github/actions/_parser.py | 2 +- pontos/github/script/load.py | 2 +- pontos/helper.py | 4 ++-- tests/nvd/__init__.py | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pontos/github/_parser.py b/pontos/github/_parser.py index 578da285a..0648b462d 100644 --- a/pontos/github/_parser.py +++ b/pontos/github/_parser.py @@ -3,7 +3,7 @@ # SPDX-License-Identifier: GPL-3.0-or-later # -""" Argument parser for pontos-github """ +"""Argument parser for pontos-github""" import os from argparse import ArgumentParser, FileType, Namespace diff --git a/pontos/github/actions/_parser.py b/pontos/github/actions/_parser.py index 4c50b4f90..ff10c3564 100644 --- a/pontos/github/actions/_parser.py +++ b/pontos/github/actions/_parser.py @@ -3,7 +3,7 @@ # SPDX-License-Identifier: GPL-3.0-or-later # -""" Argument parser for pontos-github-actions """ +"""Argument parser for pontos-github-actions""" from argparse import ArgumentParser, Namespace from typing import Optional, Sequence diff --git a/pontos/github/script/load.py b/pontos/github/script/load.py index a4155ef96..79a766f68 100644 --- a/pontos/github/script/load.py +++ b/pontos/github/script/load.py @@ -24,7 +24,7 @@ @contextmanager def load_script( - script: Union[str, os.PathLike] + script: Union[str, os.PathLike], ) -> Generator[ModuleType, None, None]: """ A context manager to load a script module. diff --git a/pontos/helper.py b/pontos/helper.py index d1c003e5e..fa757bec4 100644 --- a/pontos/helper.py +++ b/pontos/helper.py @@ -396,7 +396,7 @@ def wrapper(*args, **kwargs): @contextmanager def add_sys_path( - directory: Union[str, os.PathLike] + directory: Union[str, os.PathLike], ) -> Generator[None, None, None]: """ Context Manager to add a directory path to the module search path aka. @@ -444,7 +444,7 @@ def unload_module(module: Union[str, ModuleType]) -> None: @contextmanager def ensure_unload_module( - module: Union[str, ModuleType] + module: Union[str, ModuleType], ) -> Generator[None, None, None]: """ A context manager to ensure that a module gets removed even if an error diff --git a/tests/nvd/__init__.py b/tests/nvd/__init__.py index 010ac4297..751ee2ee3 100644 --- a/tests/nvd/__init__.py +++ b/tests/nvd/__init__.py @@ -56,7 +56,7 @@ def get_cpe_data(update: Optional[Dict[str, Any]] = None) -> Dict[str, Any]: def get_cpe_match_data( - update: Optional[Dict[str, Any]] = None + update: Optional[Dict[str, Any]] = None, ) -> Dict[str, Any]: data = { "cpe_last_modified": "2019-07-22T16:37:38.133", @@ -96,7 +96,7 @@ def get_cpe_match_data( def get_cve_change_data( - data: Optional[Dict[str, Any]] = None + data: Optional[Dict[str, Any]] = None, ) -> Dict[str, Any]: cve_changes = { "cve_id": "CVE-2022-0001",