Skip to content

Commit

Permalink
Build(deps): Bump the python-packages group with 4 updates (#973)
Browse files Browse the repository at this point in the history
* Build(deps): Bump the python-packages group with 4 updates

Bumps the python-packages group with 4 updates: [redis](https://github.com/redis/redis-py), [pylint](https://github.com/pylint-dev/pylint), [pontos](https://github.com/greenbone/pontos) and [black](https://github.com/psf/black).


Updates `redis` from 5.0.1 to 5.0.2
- [Release notes](https://github.com/redis/redis-py/releases)
- [Changelog](https://github.com/redis/redis-py/blob/master/CHANGES)
- [Commits](redis/redis-py@v5.0.1...v5.0.2)

Updates `pylint` from 3.0.3 to 3.1.0
- [Release notes](https://github.com/pylint-dev/pylint/releases)
- [Commits](pylint-dev/pylint@v3.0.3...v3.1.0)

Updates `pontos` from 24.1.2 to 24.2.2
- [Release notes](https://github.com/greenbone/pontos/releases)
- [Commits](greenbone/pontos@v24.1.2...v24.2.2)

Updates `black` from 23.12.1 to 24.2.0
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](psf/black@23.12.1...24.2.0)

---
updated-dependencies:
- dependency-name: redis
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-packages
- dependency-name: pylint
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: python-packages
- dependency-name: pontos
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: python-packages
- dependency-name: black
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: python-packages
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix format with black

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Juan Jose Nicola <[email protected]>
  • Loading branch information
dependabot[bot] and jjnicola authored Feb 29, 2024
1 parent dad94d1 commit 76f64f5
Show file tree
Hide file tree
Showing 8 changed files with 224 additions and 218 deletions.
1 change: 0 additions & 1 deletion ospd/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ def __str__(self) -> str:


class OspdCommandError(OspdError):

"""This is an exception that will result in an error message to the
client"""

Expand Down
1 change: 0 additions & 1 deletion ospd/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ def create_process(


class ResultType(object):

"""Various scan results types values."""

ALARM = 0
Expand Down
13 changes: 6 additions & 7 deletions ospd/ospd.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ def _terminate_process_group(process: multiprocessing.Process) -> None:


class OSPDaemon:

"""Daemon class for OSP traffic handling.
Every scanner wrapper should subclass it and make necessary additions and
Expand Down Expand Up @@ -808,19 +807,19 @@ def _get_scan_progress_raw(self, scan_id: str) -> Dict:
"""Returns a dictionary with scan_id scan's progress information."""
current_progress = dict()

current_progress[
'current_hosts'
] = self.scan_collection.get_current_target_progress(scan_id)
current_progress['current_hosts'] = (
self.scan_collection.get_current_target_progress(scan_id)
)
current_progress['overall'] = self.get_scan_progress(scan_id)
current_progress['count_alive'] = self.scan_collection.get_count_alive(
scan_id
)
current_progress['count_dead'] = self.scan_collection.get_count_dead(
scan_id
)
current_progress[
'count_excluded'
] = self.scan_collection.get_simplified_exclude_host_count(scan_id)
current_progress['count_excluded'] = (
self.scan_collection.get_simplified_exclude_host_count(scan_id)
)
current_progress['count_total'] = self.scan_collection.get_count_total(
scan_id
)
Expand Down
1 change: 0 additions & 1 deletion ospd/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ class ScanProgress(IntEnum):


class ScanCollection:

"""Scans collection, managing scans and results read and write, exposing
only needed information.
Expand Down
2 changes: 0 additions & 2 deletions ospd_openvas/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,6 @@ def safe_int(value: str) -> Optional[int]:


class OpenVasVtsFilter(VtsFilter):

"""Methods to overwrite the ones in the original class."""

def __init__(self, nvticache: NVTICache, notus: Notus) -> None:
Expand Down Expand Up @@ -435,7 +434,6 @@ def get_filtered_vts_list(self, vts, vt_filter: str) -> Optional[List[str]]:


class OSPDopenvas(OSPDaemon):

"""Class for ospd-openvas daemon."""

def __init__(
Expand Down
6 changes: 3 additions & 3 deletions ospd_openvas/messages/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ def _parse(cls, data: Dict[str, Union[int, str]]) -> Dict[str, Any]:
def serialize(self) -> Dict[str, Union[int, str]]:
return {
"message_id": str(self.message_id),
"message_type": self.message_type.value
if self.message_type
else None,
"message_type": (
self.message_type.value if self.message_type else None
),
"group_id": str(self.group_id),
"created": self.created.timestamp(),
}
Expand Down
416 changes: 214 additions & 202 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ paho-mqtt = "^1.6"
python-gnupg = ">=0.4.8,<0.6.0"

[tool.poetry.dev-dependencies]
pylint = "^3.0.3"
pylint = "^3.1.0"
rope = "^1.12.0"
autohooks-plugin-pylint = ">=21.6.0"
autohooks-plugin-black = ">=22.7.0"
Expand Down

0 comments on commit 76f64f5

Please sign in to comment.