From d80c63c880eff091d14ef91647e66e705e47c8f5 Mon Sep 17 00:00:00 2001 From: Thomas Schmelzer Date: Tue, 21 Jan 2025 12:37:36 +0400 Subject: [PATCH] Update .pre-commit-config.yaml (#26) * Update .pre-commit-config.yaml * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fmt * fmt --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 7 +++++++ pyproject.toml | 3 +++ 2 files changed, 10 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 23a125c..deb59a3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -50,3 +50,10 @@ repos: hooks: - id: typos exclude: ^\.gitignore$ + + - repo: https://github.com/PyCQA/bandit + rev: 1.8.2 + hooks: + - id: bandit + args: ["-c", "pyproject.toml"] + additional_dependencies: ["bandit[toml]"] diff --git a/pyproject.toml b/pyproject.toml index fae3f73..96b9a61 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,3 +53,6 @@ packages = ["src/cvx"] [tool.deptry.per_rule_ignores] DEP002 = ["clarabel"] + +[tool.bandit] +exclude_dirs = ["tests"]