Skip to content

Commit f77a0a7

Browse files
committed
Fix format
Signed-off-by: Eric Brown <eric_wade_brown@yahoo.com>
1 parent 79d947f commit f77a0a7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+45
-15
lines changed

precli/rules/python/stdlib/assert.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ def foobar(a: str = None):
6868
_New in version 0.3.8_
6969
7070
""" # noqa: E501
71+
7172
from typing import Optional
7273

7374
from precli.core.location import Location

precli/rules/python/stdlib/crypt_weak_hash.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@
113113
_New in version 0.1.0_
114114
115115
""" # noqa: E501
116+
116117
from typing import Optional
117118

118119
from precli.core.call import Call
@@ -121,7 +122,6 @@
121122
from precli.i18n import _
122123
from precli.rules import Rule
123124

124-
125125
WEAK_CRYPT_HASHES = (
126126
"crypt.METHOD_CRYPT",
127127
"crypt.METHOD_MD5",

precli/rules/python/stdlib/ftplib_cleartext.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
_New in version 0.1.0_
9393
9494
""" # noqa: E501
95+
9596
from typing import Optional
9697

9798
from precli.core.call import Call

precli/rules/python/stdlib/ftplib_no_timeout.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
_New in version 0.6.7_
7676
7777
""" # noqa: E501
78+
7879
from typing import Optional
7980

8081
from precli.core.call import Call

precli/rules/python/stdlib/ftplib_unverified_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
_New in version 0.3.14_
7474
7575
""" # noqa: E501
76+
7677
from typing import Optional
7778

7879
from precli.core.call import Call
@@ -81,7 +82,6 @@
8182
from precli.i18n import _
8283
from precli.rules import Rule
8384

84-
8585
CONTEXT_FIX = "ssl.create_default_context()"
8686

8787

precli/rules/python/stdlib/hashlib_improper_prng.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
_New in version 0.4.3_
7575
7676
""" # noqa: E501
77+
7778
from typing import Optional
7879

7980
from precli.core.call import Call

precli/rules/python/stdlib/hashlib_weak_hash.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
_Changed in version 0.4.1: Added md5-sha1_
9797
9898
""" # noqa: E501
99+
99100
from typing import Optional
100101

101102
from precli.core.argument import Argument

precli/rules/python/stdlib/hmac_timing_attack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
_New in version 0.1.4_
8686
8787
""" # noqa: E501
88+
8889
from typing import Optional
8990

9091
from precli.core.comparison import Comparison
@@ -93,7 +94,6 @@
9394
from precli.i18n import _
9495
from precli.rules import Rule
9596

96-
9797
TIMING_VULNERABLE = (
9898
"hmac.digest",
9999
"hmac.new.digest",

precli/rules/python/stdlib/hmac_weak_hash.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
_Changed in version 0.4.1: Added md5-sha1_
8888
8989
""" # noqa: E501
90+
9091
from typing import Optional
9192

9293
from precli.core.call import Call

precli/rules/python/stdlib/hmac_weak_key.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
_New in version 0.4.3_
7575
7676
""" # noqa: E501
77+
7778
from typing import Optional
7879

7980
from precli.core.call import Call
@@ -82,7 +83,6 @@
8283
from precli.i18n import _
8384
from precli.rules import Rule
8485

85-
8686
HASH_NAME_SIZES = {
8787
"blake2s": 32,
8888
"blake2b": 64,

0 commit comments

Comments
 (0)