-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Bump ruff and add new rules #4329
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upsie, no, pre-commit is failing I should not approve that :D
the ruff fix for job queue is probably going to break the type completeness again, do you want to ignore it? |
Changes print statements in passportbot to logger statements (UNTESTED)
examples/passportbot.py
Dismissed
@@ -47,9 +47,9 @@ | |||
# Files will be downloaded to current directory | |||
for data in passport_data.decrypted_data: # This is where the data gets decrypted | |||
if data.type == "phone_number": | |||
print("Phone: ", data.phone_number) | |||
logger.info("Phone: %s", data.phone_number) |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information High
sensitive data (private)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, first time I see this security feature doing something:D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anything left from your side?
all good |
wake up, new ruff just dropped!
new rules added: