Skip to content

Commit 34bf323

Browse files
committed
fix pre-commits by excluding fake secrets and other projects
detect-secrets was detecting its own file as secret and failing bandit was scanning all the python packages and failing
1 parent 0a90e3c commit 34bf323

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repos:
66
- hooks:
77
- id: detect-secrets
88
args: [ '--baseline', '.pre-commit/.secrets.baseline' ]
9-
exclude: (config/settings/test.py|/static|.html|local|README.md)
9+
exclude: (config/settings/test.py|/static|.html|local|README.md|.pre-commit/|test_views.py)
1010
repo: https://github.com/Yelp/detect-secrets.git
1111
rev: v1.4.0
1212

@@ -75,6 +75,6 @@ repos:
7575

7676
- hooks:
7777
- id: bandit
78-
args: [ --verbose, -ll, --recursive, . ]
78+
args: [ --verbose, -ll, . ]
7979
repo: https://github.com/PyCQA/bandit
8080
rev: 1.7.7

requirements/local.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ flake8==3.8.4 # https://github.com/PyCQA/flake8
2222
flake8-isort==4.0.0 # https://github.com/gforcada/flake8-isort
2323
coverage==5.5 # https://github.com/nedbat/coveragepy
2424
black==20.8b1 # https://github.com/ambv/black
25-
pylint-django==2.4.4 # https://github.com/PyCQA/pylint-django
25+
pylint-django==2.5.4 # https://github.com/PyCQA/pylint-django
2626
pre-commit==2.10.1 # https://github.com/pre-commit/pre-commit
2727
isort==4.3.21 # https://github.com/PyCQA/isort
2828

0 commit comments

Comments
 (0)