Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Hooks for this repository. Generated projects get
# template/.pre-commit-config.yaml.jinja instead.
repos:
- repo: https://github.com/gitleaks/gitleaks
rev: 83d9cd684c87d95d656c1458ef04895a7f1cbd8e # frozen: v8.30.1
hooks:
- id: gitleaks
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@ uvx copier copy git@github.com:XomniaAI/python-project-template.git <path>
```

Replace `<path>` with your desired project directory.

## Development

Run `uvx pre-commit install` once. It installs a gitleaks hook that scans
staged changes for secrets on every commit.
7 changes: 3 additions & 4 deletions template/.pre-commit-config.yaml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ repos:
- id: yamllint
args: [-d, "{extends: relaxed, rules: {line-length: disable} }"]
verbose: true
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
- repo: https://github.com/gitleaks/gitleaks
rev: 83d9cd684c87d95d656c1458ef04895a7f1cbd8e # frozen: v8.30.1
hooks:
- id: detect-secrets
exclude: ^\.venv/
- id: gitleaks
- repo: https://github.com/kynan/nbstripout
rev: '0.9.1'
hooks:
Expand Down
Loading