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] authored 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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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.