Skip to content

Commit

Permalink
Update formatting for latest version of black
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoernricks authored and greenbonebot committed Feb 10, 2025
1 parent 054ebb0 commit 9322f7a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pontos/github/_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pontos/github/actions/_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pontos/github/script/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions pontos/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/nvd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 9322f7a

Please sign in to comment.