Skip to content
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 ospd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
#
# SPDX-License-Identifier: AGPL-3.0-or-later

""" OSPd core module. """
"""OSPd core module."""

from ospd_openvas.__version__ import __version__
2 changes: 1 addition & 1 deletion ospd/cvss.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: AGPL-3.0-or-later

""" Common Vulnerability Scoring System handling class. """
"""Common Vulnerability Scoring System handling class."""

import logging

Expand Down
3 changes: 1 addition & 2 deletions ospd/datapickler.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
#
# SPDX-License-Identifier: AGPL-3.0-or-later

""" Pickle Handler class
"""
"""Pickle Handler class"""

import logging
import pickle
Expand Down
3 changes: 1 addition & 2 deletions ospd/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
#
# SPDX-License-Identifier: AGPL-3.0-or-later

""" OSP class for handling errors.
"""
"""OSP class for handling errors."""

from ospd.xml import simple_response_str

Expand Down
3 changes: 1 addition & 2 deletions ospd/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

# pylint: disable=too-many-lines

""" Miscellaneous classes and functions related to OSPD.
"""
"""Miscellaneous classes and functions related to OSPD."""

import logging
import os
Expand Down
3 changes: 1 addition & 2 deletions ospd/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
#
# SPDX-License-Identifier: AGPL-3.0-or-later

""" Helper module for network related functions
"""
"""Helper module for network related functions"""

import binascii
import collections
Expand Down
3 changes: 1 addition & 2 deletions ospd/ospd.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

# pylint: disable=too-many-lines

""" OSP Daemon core class.
"""
"""OSP Daemon core class."""

import logging
import multiprocessing
Expand Down
3 changes: 1 addition & 2 deletions ospd/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
#
# SPDX-License-Identifier: AGPL-3.0-or-later

""" Helper classes for parsing and creating OSP XML requests and responses
"""
"""Helper classes for parsing and creating OSP XML requests and responses"""

from typing import Dict, Union, List, Any

Expand Down
3 changes: 1 addition & 2 deletions ospd/resultlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

# pylint: disable=too-many-lines

""" Class for handling list of resutls.
"""
"""Class for handling list of resutls."""

from collections import OrderedDict
from typing import Dict
Expand Down
3 changes: 1 addition & 2 deletions ospd/vtfilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
#
# SPDX-License-Identifier: AGPL-3.0-or-later

""" Vulnerability Test Filter class.
"""
"""Vulnerability Test Filter class."""
import re
import operator
from typing import Dict, List, Optional
Expand Down
3 changes: 1 addition & 2 deletions ospd/vts.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
#
# SPDX-License-Identifier: AGPL-3.0-or-later

""" Classes for storing VTs
"""
"""Classes for storing VTs"""
import logging
import multiprocessing
from hashlib import sha256
Expand Down
3 changes: 1 addition & 2 deletions ospd/xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
#
# SPDX-License-Identifier: AGPL-3.0-or-later

""" OSP XML utils class.
"""
"""OSP XML utils class."""

import re

Expand Down
3 changes: 1 addition & 2 deletions ospd/xmlvt.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
#
# SPDX-License-Identifier: AGPL-3.0-or-later

""" OSP XML utils class for VTs.
"""
"""OSP XML utils class for VTs."""
import logging

from typing import List, Dict, Optional
Expand Down
2 changes: 1 addition & 1 deletion ospd_openvas/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# pylint: disable=too-many-lines

""" Setup for the OSP OpenVAS Server. """
"""Setup for the OSP OpenVAS Server."""

import logging
import time
Expand Down
2 changes: 1 addition & 1 deletion ospd_openvas/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# SPDX-License-Identifier: AGPL-3.0-or-later


""" Access management for redis-based OpenVAS Scanner Database."""
"""Access management for redis-based OpenVAS Scanner Database."""
import logging
import sys
import time
Expand Down
2 changes: 1 addition & 1 deletion ospd_openvas/dryrun.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# pylint: disable=too-many-lines

""" Methods for dry run """
"""Methods for dry run"""

import logging
import time
Expand Down
2 changes: 1 addition & 1 deletion ospd_openvas/gpg_sha_verifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def gpg_sha256sums(


def create_verify(
sha256sums: Callable[[], Dict[str, str]]
sha256sums: Callable[[], Dict[str, str]],
) -> Callable[[Path], bool]:
"""
create_verify is returning a closure based on the sha256sums.
Expand Down
2 changes: 1 addition & 1 deletion ospd_openvas/notus.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def hashsum_verificator(
return lambda _: True

def on_hash_sum_verification_failure(
_: Optional[Dict[str, str]]
_: Optional[Dict[str, str]],
) -> Dict[str, str]:
logger.warning(
"GPG verification of notus sha256sums failed."
Expand Down
2 changes: 1 addition & 1 deletion ospd_openvas/nvticache.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: AGPL-3.0-or-later

""" Provide functions to handle NVT Info Cache. """
"""Provide functions to handle NVT Info Cache."""

import logging

Expand Down
6 changes: 3 additions & 3 deletions ospd_openvas/preferencehandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

# pylint: disable=too-many-lines

""" Prepare the preferences to be used by OpenVAS. Get the data from the scan
"""Prepare the preferences to be used by OpenVAS. Get the data from the scan
collection and store the data in a redis KB in the right format to be used by
OpenVAS. """
OpenVAS."""

import logging
import binascii
Expand Down Expand Up @@ -324,7 +324,7 @@ def prepare_nvt_preferences(self):

@staticmethod
def build_alive_test_opt_as_prefs(
target_options: Dict[str, str]
target_options: Dict[str, str],
) -> Dict[str, str]:
"""Parse the target options dictionary.
Arguments:
Expand Down
2 changes: 1 addition & 1 deletion ospd_openvas/vthelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: AGPL-3.0-or-later

""" Provide functions to handle VT Info. """
"""Provide functions to handle VT Info."""

from hashlib import sha256
import logging
Expand Down
Loading