Skip to content

Commit

Permalink
Update pre-commit: add bandit (#1913)
Browse files Browse the repository at this point in the history
  • Loading branch information
arkid15r authored Aug 15, 2024
1 parent 4d970d1 commit 1f766e2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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/*"]
Expand Down

0 comments on commit 1f766e2

Please sign in to comment.