Skip to content

Commit f81b9a3

Browse files
committed
Ignore specific ruff errors
1 parent 016993e commit f81b9a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unittests/tools/test_appcheck_web_application_scanner_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def test_appcheck_web_application_scanner_parser_dupes(self):
222222
self.assertEqual(3, len(findings))
223223

224224
def test_appcheck_web_application_scanner_parser_http2(self):
225-
with open("unittests/scans/appcheck_web_application_scanner/appcheck_web_application_scanner_http2.json") as testfile:
225+
with open("unittests/scans/appcheck_web_application_scanner/appcheck_web_application_scanner_http2.json") as testfile: # noqa: PLW1514
226226
parser = AppCheckWebApplicationScannerParser()
227227
findings = parser.get_findings(testfile, Test())
228228
self.assertEqual(3, len(findings))
@@ -541,7 +541,7 @@ def test_appcheck_web_application_scanner_parser_non_printable_escape(self):
541541
("'!Test String?'\"\"", "'!Test String?'\"\""),
542542
("\r\n\tTest\r\nString\t\r\n", "\r\n\tTest\r\nString\t\r\n"),
543543
("\0Test\r\nString\0\n", "\\x00Test\r\nString\\x00\n"),
544-
("\0\0你好,\0我不知道。对马好!\n", "\\x00\\x00你好,\\x00我不知道。对马好!\n"),
544+
("\0\0你好,\0我不知道。对马好!\n", "\\x00\\x00你好,\\x00我不知道。对马好!\n"), # noqa: RUF001
545545
("\u0000", r"\x00"),
546546
("\x00", r"\x00"),
547547
("\u0000\u0000", r"\x00\x00"),

0 commit comments

Comments
 (0)