diff --git a/requirements-lint.txt b/requirements-lint.txt index 0e4ee0a0eae..4228b8f407e 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -1 +1 @@ -ruff==0.6.9 \ No newline at end of file +ruff==0.7.0 \ No newline at end of file diff --git a/ruff.toml b/ruff.toml index 9a34bf6e005..25e456a5488 100644 --- a/ruff.toml +++ b/ruff.toml @@ -75,7 +75,6 @@ select = [ "TRY003", "TRY004", "TRY2", - "TRY302", "FLY", "NPY", "FAST", diff --git a/unittests/tools/test_appcheck_web_application_scanner_parser.py b/unittests/tools/test_appcheck_web_application_scanner_parser.py index 5c3e7dc96b9..9360eb9209f 100644 --- a/unittests/tools/test_appcheck_web_application_scanner_parser.py +++ b/unittests/tools/test_appcheck_web_application_scanner_parser.py @@ -1,3 +1,5 @@ +import string + from django.test import TestCase from dojo.models import Finding, Test @@ -548,7 +550,7 @@ def test_appcheck_web_application_scanner_parser_non_printable_escape(self): for test_string, expected in [ ("", ""), ( - "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ \t\n\r\x0b\x0c", + string.printable, "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ \t\n\r\\x0b\\x0c", ), ("'!Test String?'\"\"", "'!Test String?'\"\""),