Skip to content

Commit f8cdb3e

Browse files
Enable ruff S105 rule (#11343)
* Enable ruff S105 rule * Update web_programming/recaptcha_verification.py --------- Co-authored-by: Christian Clauss <cclauss@me.com>
1 parent 93fb555 commit f8cdb3e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ lint.ignore = [ # `ruff rule S101` for a description of that rule
1515
"PT018", # Assertion should be broken down into multiple parts
1616
"RUF00", # Ambiguous unicode character and other rules
1717
"S101", # Use of `assert` detected -- DO NOT FIX
18-
"S105", # Possible hardcoded password: 'password'
1918
"S113", # Probable use of requests call without timeout -- FIX ME
2019
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes -- FIX ME
2120
"SLF001", # Private member accessed: `_Iterator` -- FIX ME

web_programming/recaptcha_verification.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
def login_using_recaptcha(request):
4545
# Enter your recaptcha secret key here
46-
secret_key = "secretKey"
46+
secret_key = "secretKey" # noqa: S105
4747
url = "https://www.google.com/recaptcha/api/siteverify"
4848

4949
# when method is not POST, direct user to login page

0 commit comments

Comments
 (0)