From eeeaacae101dbefe223c34eeac195055c0a49ca2 Mon Sep 17 00:00:00 2001 From: Manuel Sommer Date: Fri, 8 Nov 2024 14:37:48 +0100 Subject: [PATCH 1/3] :bug: fix renovate ruff update --- dojo/api_v2/serializers.py | 3 ++- requirements-lint.txt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dojo/api_v2/serializers.py b/dojo/api_v2/serializers.py index 2680e8f1ad..3b533db8f7 100644 --- a/dojo/api_v2/serializers.py +++ b/dojo/api_v2/serializers.py @@ -3,6 +3,7 @@ import os import re from datetime import datetime +import collections import six import tagulous @@ -281,7 +282,7 @@ def _pop_tags(self, validated_data): return (to_be_tagged, validated_data) -class RequestResponseDict(list): +class RequestResponseDict(collections.UserList): def __init__(self, *args, **kwargs): pretty_print = kwargs.pop("pretty_print", True) list.__init__(self, *args, **kwargs) diff --git a/requirements-lint.txt b/requirements-lint.txt index 17efde5683..904511689c 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -1 +1 @@ -ruff==0.7.2 \ No newline at end of file +ruff==0.7.3 \ No newline at end of file From eb992aee5026b51dfed398acd2adc484f7b2960c Mon Sep 17 00:00:00 2001 From: Manuel Sommer Date: Fri, 8 Nov 2024 14:39:23 +0100 Subject: [PATCH 2/3] ruff --- dojo/api_v2/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dojo/api_v2/serializers.py b/dojo/api_v2/serializers.py index 3b533db8f7..0882025628 100644 --- a/dojo/api_v2/serializers.py +++ b/dojo/api_v2/serializers.py @@ -1,9 +1,9 @@ +import collections import json import logging import os import re from datetime import datetime -import collections import six import tagulous From 9dd6f4b292a63d270468f30f30588e84b45ff96c Mon Sep 17 00:00:00 2001 From: manuelsommer <47991713+manuel-sommer@users.noreply.github.com> Date: Fri, 8 Nov 2024 19:00:04 +0100 Subject: [PATCH 3/3] Update dojo/api_v2/serializers.py Co-authored-by: Charles Neill <1749665+cneill@users.noreply.github.com> --- dojo/api_v2/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dojo/api_v2/serializers.py b/dojo/api_v2/serializers.py index 0882025628..7485efea1c 100644 --- a/dojo/api_v2/serializers.py +++ b/dojo/api_v2/serializers.py @@ -285,7 +285,7 @@ def _pop_tags(self, validated_data): class RequestResponseDict(collections.UserList): def __init__(self, *args, **kwargs): pretty_print = kwargs.pop("pretty_print", True) - list.__init__(self, *args, **kwargs) + collections.UserList.__init__(self, *args, **kwargs) self.pretty_print = pretty_print def __add__(self, rhs):