Merge "Migrate bandit options to pyproject.toml"
This commit is contained in:
@@ -39,7 +39,7 @@ repos:
|
||||
rev: 1.8.3
|
||||
hooks:
|
||||
- id: bandit
|
||||
args: ['-x', 'tests', '-s', 'B101,B311,B320']
|
||||
args: ['-c', 'pyproject.toml']
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: v0.12.1
|
||||
hooks:
|
||||
|
||||
@@ -28,3 +28,7 @@ ignore = [
|
||||
[tool.ruff.lint.mccabe]
|
||||
# Flag errors (`C901`) whenever the complexity level exceeds 5.
|
||||
max-complexity = 20
|
||||
|
||||
[tool.bandit]
|
||||
exclude_dirs = ['tests']
|
||||
skips = ['B101', 'B311', 'B320']
|
||||
|
||||
Reference in New Issue
Block a user