Skip to content

Commit 71965f1

Browse files
committed
Add necessary code to support it
1 parent 425727e commit 71965f1

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

.pre-commit-hooks.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,12 @@
128128
entry: detect-private-key
129129
language: python
130130
types: [text]
131+
- id: detect-web3-private-key
132+
name: detect web3 private key
133+
description: detects the presence of web3 private keys.
134+
entry: detect-web3-private-key
135+
language: python
136+
types: [text]
131137
- id: double-quote-string-fixer
132138
name: fix double quoted strings
133139
description: replaces double quoted strings with single quoted strings.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ The following arguments are available:
110110
#### `detect-private-key`
111111
Checks for the existence of private keys.
112112

113+
#### `detect-web3-private-key`
114+
Checks for the existence of web3 private keys. Add `# web3-private-key-ok` to the end of the line to ignore false positives.
115+
113116
#### `double-quote-string-fixer`
114117
This hook replaces double quoted strings with single quoted strings.
115118

File renamed without changes.

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ console_scripts =
4949
destroyed-symlinks = pre_commit_hooks.destroyed_symlinks:main
5050
detect-aws-credentials = pre_commit_hooks.detect_aws_credentials:main
5151
detect-private-key = pre_commit_hooks.detect_private_key:main
52+
detect-web3-private-key = pre_commit_hooks.detect_web3_private_key:main
5253
double-quote-string-fixer = pre_commit_hooks.string_fixer:main
5354
end-of-file-fixer = pre_commit_hooks.end_of_file_fixer:main
5455
file-contents-sorter = pre_commit_hooks.file_contents_sorter:main

0 commit comments

Comments
 (0)