Skip to content

Commit

Permalink
+ update precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
jonsedar committed Dec 17, 2023
1 parent 1efc4a2 commit 02b5f9c
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ repos:
- id: no-print-statements
files: ^src/
- repo: https://github.com/psf/black # black formatter
rev: 23.12.0
rev: 23.11.0
hooks:
- id: black
files: ^src/
- repo: https://github.com/PyCQA/isort # isort sort imports
rev: 5.13.2
rev: 5.13.0
hooks:
- id: isort
files: ^src/
Expand All @@ -45,12 +45,20 @@ repos:
hooks:
- id: flake8
files: ^src/
- repo: https://github.com/nbQA-dev/nbQA # generalised notebook QA
rev: 1.7.1
- repo: https://github.com/pycqa/bandit # basic security checks for python code
rev: 1.7.6
hooks:
# - id: nbqa-black # not yet
- id: nbqa-isort
additional_dependencies: [isort==5.10.1]
- id: bandit
files: ^src/
args: ["--config", "pyproject.toml"]
additional_dependencies: ["bandit[toml]"]
- repo: https://github.com/econchick/interrogate # check for docstrings
rev: 1.5.0
hooks:
- id: interrogate
files: ^src/
args: [--config, pyproject.toml]
pass_filenames: false # see https://github.com/econchick/interrogate/issues/60#issuecomment-1180262851
- repo: https://gitlab.com/iam-cms/pre-commit-hooks # apply Apache2 header
rev: v0.4.0
hooks:
Expand Down

0 comments on commit 02b5f9c

Please sign in to comment.