From 6075635a61880468ce59d5c88ecc9d73af9118bc Mon Sep 17 00:00:00 2001 From: Jiaqi Liu Date: Thu, 23 Jul 2020 21:21:42 -0700 Subject: [PATCH] precommit --- .pre-commit-config.yaml | 16 ++++++++ .secrets.baseline | 86 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 102 insertions(+) create mode 100644 .pre-commit-config.yaml create mode 100644 .secrets.baseline diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..4e960ea --- /dev/null +++ b/.pre-commit-config.yaml @@ -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 diff --git a/.secrets.baseline b/.secrets.baseline new file mode 100644 index 0000000..164727a --- /dev/null +++ b/.secrets.baseline @@ -0,0 +1,86 @@ +{ + "custom_plugin_paths": [], + "exclude": { + "files": null, + "lines": null + }, + "generated_at": "2020-07-24T04:21:16Z", + "plugins_used": [ + { + "name": "AWSKeyDetector" + }, + { + "name": "ArtifactoryDetector" + }, + { + "base64_limit": 4.5, + "name": "Base64HighEntropyString" + }, + { + "name": "BasicAuthDetector" + }, + { + "name": "CloudantDetector" + }, + { + "hex_limit": 3, + "name": "HexHighEntropyString" + }, + { + "name": "IbmCloudIamDetector" + }, + { + "name": "IbmCosHmacDetector" + }, + { + "name": "JwtTokenDetector" + }, + { + "keyword_exclude": null, + "name": "KeywordDetector" + }, + { + "name": "MailchimpDetector" + }, + { + "name": "PrivateKeyDetector" + }, + { + "name": "SlackDetector" + }, + { + "name": "SoftlayerDetector" + }, + { + "name": "StripeDetector" + }, + { + "name": "TwilioKeyDetector" + } + ], + "results": { + ".travis.yml": [ + { + "hashed_secret": "c092470f97d3ef7a4e05e6199a4b8324759b86b6", + "is_secret": false, + "is_verified": false, + "line_number": 18, + "type": "Base64 High Entropy String" + } + ], + "dictionaryutils/version_data.py": [ + { + "hashed_secret": "1418270f43b9d0a2c81a8de31ff55808e9fa719a", + "is_secret": false, + "is_verified": false, + "line_number": 1, + "type": "Hex High Entropy String" + } + ] + }, + "version": "0.14.1", + "word_list": { + "file": null, + "hash": null + } +}