Skip to content

Commit

Permalink
Add gitleaks pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
alexamici committed Jul 10, 2023
1 parent ba657cb commit 54ceb98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,7 @@ repos:
args: [--autofix, --preserve-quotes]
- id: pretty-format-toml
args: [--autofix]
- repo: https://github.com/gitleaks/gitleaks
rev: v8.17.0
hooks:
- id: gitleaks
1 change: 1 addition & 0 deletions cads_catalogue/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ def load_fulltext(folder_path: str | pathlib.Path) -> dict[str, Any]:
Parameters
----------
folder_path: root folder path where to collect metadata of a resource
Returns
-------
dict: dictionary of metadata collected
Expand Down

0 comments on commit 54ceb98

Please sign in to comment.