mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-27 15:01:08 +00:00
Enable ruff S105 rule (#11343)
* Enable ruff S105 rule * Update web_programming/recaptcha_verification.py --------- Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
parent
93fb555e0a
commit
f8cdb3e948
|
@ -15,7 +15,6 @@ lint.ignore = [ # `ruff rule S101` for a description of that rule
|
||||||
"PT018", # Assertion should be broken down into multiple parts
|
"PT018", # Assertion should be broken down into multiple parts
|
||||||
"RUF00", # Ambiguous unicode character and other rules
|
"RUF00", # Ambiguous unicode character and other rules
|
||||||
"S101", # Use of `assert` detected -- DO NOT FIX
|
"S101", # Use of `assert` detected -- DO NOT FIX
|
||||||
"S105", # Possible hardcoded password: 'password'
|
|
||||||
"S113", # Probable use of requests call without timeout -- FIX ME
|
"S113", # Probable use of requests call without timeout -- FIX ME
|
||||||
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes -- FIX ME
|
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes -- FIX ME
|
||||||
"SLF001", # Private member accessed: `_Iterator` -- FIX ME
|
"SLF001", # Private member accessed: `_Iterator` -- FIX ME
|
||||||
|
|
|
@ -43,7 +43,7 @@ except ImportError:
|
||||||
|
|
||||||
def login_using_recaptcha(request):
|
def login_using_recaptcha(request):
|
||||||
# Enter your recaptcha secret key here
|
# Enter your recaptcha secret key here
|
||||||
secret_key = "secretKey"
|
secret_key = "secretKey" # noqa: S105
|
||||||
url = "https://www.google.com/recaptcha/api/siteverify"
|
url = "https://www.google.com/recaptcha/api/siteverify"
|
||||||
|
|
||||||
# when method is not POST, direct user to login page
|
# when method is not POST, direct user to login page
|
||||||
|
|
Loading…
Reference in New Issue
Block a user