Skip to content

[pre-commit.ci] pre-commit autoupdate #1119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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