Skip to content

[pull] master from TheAlgorithms:master #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Enable ruff S105 rule (TheAlgorithms#11343)
* Enable ruff S105 rule

* Update web_programming/recaptcha_verification.py

---------

Co-authored-by: Christian Clauss <cclauss@me.com>
  • Loading branch information
MaximSmolskiy and cclauss authored Apr 2, 2024
commit f8cdb3e9482ddca85cd1bffa96c038afc13f9c85
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ lint.ignore = [ # `ruff rule S101` for a description of that rule
"PT018", # Assertion should be broken down into multiple parts
"RUF00", # Ambiguous unicode character and other rules
"S101", # Use of `assert` detected -- DO NOT FIX
"S105", # Possible hardcoded password: 'password'
"S113", # Probable use of requests call without timeout -- FIX ME
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes -- FIX ME
"SLF001", # Private member accessed: `_Iterator` -- FIX ME
Expand Down
2 changes: 1 addition & 1 deletion web_programming/recaptcha_verification.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

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

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