Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#1119)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.5.0](pre-commit/pre-commit-hooks@v4.4.0...v4.5.0)
- https://github.com/asottile/reorder_python_importshttps://github.com/asottile/reorder-python-imports
- [github.com/asottile/reorder-python-imports: v3.9.0 → v3.12.0](asottile/reorder-python-imports@v3.9.0...v3.12.0)
- [github.com/psf/black-pre-commit-mirror: 23.10.1 → 24.2.0](psf/black-pre-commit-mirror@23.10.1...24.2.0)
- [github.com/asottile/pyupgrade: v3.3.2 → v3.15.1](asottile/pyupgrade@v3.3.2...v3.15.1)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] committed Mar 13, 2024
1 parent c9b51da commit 52d2dc9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
@@ -1,24 +1,24 @@
exclude: ^(examples|tools|doc)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.9.0
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.12.0
hooks:
- id: reorder-python-imports
args: [--application-directories, '.:src', --py38-plus]
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.10.1
rev: 24.2.0
hooks:
- id: black
args: [--line-length=79, --target-version=py38]
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.2
rev: v3.15.1
hooks:
- id: pyupgrade
args: [--py38-plus]
Expand Down
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 52d2dc9

Please sign in to comment.