From eac33ff2d4d48de3580da2558b09ceda65901266 Mon Sep 17 00:00:00 2001 From: rdimaio Date: Mon, 18 Mar 2024 18:26:16 +0100 Subject: [PATCH] Testing: Add security linting; #6538 --- pyproject.toml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 7a3aea538e..34dc9dd098 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,6 +42,7 @@ exclude = [ [tool.ruff.lint] select = [ "I", # isort + "S", # bandit "UP", # pyupgrade ] @@ -56,3 +57,17 @@ ignore = [ "UP032", # Use f-string instead of `format` call "SIM210", ] + +[tool.ruff.lint.per-file-ignores] +'tests/*.py' = [ + 'S101', # Usage of assert + 'S105', # Hardcoded password string + 'S106', # Hardcoded password function argument + 'S108', # Hardcoded temporary file + 'S110', # try-except-pass + 'S113', # Probable use of requests call without timeout + 'S306', # Use of insecure and deprecated function + 'S311', # Non-cryptographic random usage + 'S324', # Probable use of insecure hash function + 'S605', # Starting a process with a shell +]