From 533f03c2edb26c9ce6cb07a63b5cd6873bd0dff5 Mon Sep 17 00:00:00 2001 From: Nathan Chancellor Date: Thu, 20 Apr 2023 08:57:15 -0700 Subject: [PATCH] ruff.toml: Disable S603 and S607 Reading the bandit documentation, these warnings are low severity and it would make the code significantly worse to try and work around them, so opt out of them. These calls are working as intended and this script is designed to be used interactively so injection is not a concern. Link: https://bandit.readthedocs.io/en/latest/plugins/b603_subprocess_without_shell_equals_true.html Link: https://bandit.readthedocs.io/en/latest/plugins/b607_start_process_with_partial_path.html Signed-off-by: Nathan Chancellor --- ruff.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ruff.toml b/ruff.toml index 4455d83..9c27f49 100644 --- a/ruff.toml +++ b/ruff.toml @@ -24,5 +24,7 @@ ignore = [ 'PLR0913', # too-many-arguments 'PLR0915', # too-many-statements 'PLR2004', # magic-value-comparison + 'S603', # subprocess-without-shell-equals-true + 'S607', # start-process-with-partial-path ] target-version = 'py38'