From 1f766e2a84ce2cf4833a3d7e2a49ed1d7e4eb906 Mon Sep 17 00:00:00 2001 From: Arkadii Yakovets <2201626+arkid15r@users.noreply.github.com> Date: Thu, 15 Aug 2024 08:10:22 -0700 Subject: [PATCH] Update pre-commit: add bandit (#1913) --- .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 cc9a67b5a..f7eca7e67 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -34,6 +34,13 @@ repos: - --license-filepath - docs/file_header.txt + - repo: https://github.com/pycqa/bandit + rev: 1.7.9 + hooks: + - id: bandit + args: + - --configfile=pyproject.toml + - repo: https://github.com/pycqa/isort rev: 5.13.2 hooks: diff --git a/pyproject.toml b/pyproject.toml index eec8b297a..0d55cd3e9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,6 +34,9 @@ Documentation = "https://python-holidays.readthedocs.io/en/latest/" Changelog = "https://github.com/vacanza/python-holidays/releases" Downloads = "https://pypi.org/project/holidays/" +[tool.bandit] +exclude_dirs = ["docs", "tests"] + [tool.coverage.run] branch = true omit = ["scripts/*", "setup.py", "tests/*"]