Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 13, 2024
1 parent 84bd3e1 commit 0693919
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
8 changes: 5 additions & 3 deletions bandit/plugins/injection_sql.py
Expand Up @@ -132,9 +132,11 @@ def hardcoded_sql_expressions(context):
if _check_string(statement):
return bandit.Issue(
severity=bandit.MEDIUM,
confidence=bandit.MEDIUM
if execute_call and not str_replace
else bandit.LOW,
confidence=(
bandit.MEDIUM
if execute_call and not str_replace
else bandit.LOW
),
cwe=issue.Cwe.SQL_INJECTION,
text="Possible SQL injection vector through string-based "
"query construction.",
Expand Down
1 change: 0 additions & 1 deletion tests/functional/test_baseline.py
Expand Up @@ -26,7 +26,6 @@


class BaselineFunctionalTests(testtools.TestCase):

"""Functional tests for Bandit baseline.
This set of tests is used to verify that the baseline comparison handles
Expand Down
1 change: 0 additions & 1 deletion tests/functional/test_functional.py
Expand Up @@ -15,7 +15,6 @@


class FunctionalTests(testtools.TestCase):

"""Functional tests for bandit test plugins.
This set of tests runs bandit against each example file in turn
Expand Down

0 comments on commit 0693919

Please sign in to comment.