Skip to content

Commit c96240a

Browse files
committed
Fix by pre-commit
1 parent 787ad04 commit c96240a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

detect_secrets/filters/heuristic.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
import re
33
import string
44
from functools import lru_cache
5-
from typing import Pattern, Optional
5+
from typing import Optional
6+
from typing import Pattern
67

7-
from detect_secrets.plugins.base import BasePlugin, RegexBasedDetector
8+
from detect_secrets.plugins.base import BasePlugin
9+
from detect_secrets.plugins.base import RegexBasedDetector
810

911

1012
def is_sequential_string(secret: str) -> bool:

tests/filters/heuristic_filter_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def test_success(self, secret, line):
9393
('RANDOM_STRING', 'postgres://david:RANDOM_STRING'),
9494
9595
# fail since this is an aws access key id, a real secret
96-
('AKIA4NACSIJMDDNSEDTE', 'aws_access_key_id=AKIA4NACSIJMDDNSEDTE')
96+
('AKIA4NACSIJMDDNSEDTE', 'aws_access_key_id=AKIA4NACSIJMDDNSEDTE'),
9797
],
9898
)
9999
def test_failure(self, secret, line, plugin=None):

0 commit comments

Comments
 (0)