Skip to content

Commit

Permalink
fix(pre-commit): add pre-commit hook (#130)
Browse files Browse the repository at this point in the history
add pre-commit hook for security.
  • Loading branch information
thanh-nguyen-dang authored Jul 20, 2020
1 parent 61a0b46 commit 3619fa3
Show file tree
Hide file tree
Showing 71 changed files with 35,372 additions and 87 deletions.
16 changes: 16 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
repos:
- repo: git@github.com:Yelp/detect-secrets
rev: v0.13.1
hooks:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline']
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
- id: end-of-file-fixer
- id: no-commit-to-branch
args: [--branch, develop, --branch, master, --pattern, release/.*]
- repo: https://github.com/psf/black
rev: 19.10b0
hooks:
- id: black
2 changes: 1 addition & 1 deletion .secexclude
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ Dockerfile
LICENSE
NOTICE
README.md
wait_for_quay.sh
wait_for_quay.sh
2 changes: 1 addition & 1 deletion .secinclude
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ creds.json
requirements.txt
run_config.py
run_etl.py
setup.py
setup.py
Loading

0 comments on commit 3619fa3

Please sign in to comment.