Skip to content

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

Merged
merged 2 commits into from
Jun 30, 2024
Merged

Bump ruff and add new rules #4329

merged 2 commits into from
Jun 30, 2024

Conversation

harshil21
Copy link
Member

wake up, new ruff just dropped!

new rules added:

@harshil21 harshil21 added the 🛠 code-quality change type: code-quality label Jun 28, 2024
@github-actions github-actions bot removed the 🛠 code-quality change type: code-quality label Jun 28, 2024
@harshil21 harshil21 added the 🛠 code-quality change type: code-quality label Jun 28, 2024
Copy link
Member

@Bibo-Joshi Bibo-Joshi left a 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

@harshil21
Copy link
Member Author

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)
@harshil21 harshil21 added the ⚙️ examples affected functionality: examples label Jun 29, 2024
@@ -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

This expression logs
sensitive data (private)
as clear text.
Copy link
Member

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

Copy link
Member

@Bibo-Joshi Bibo-Joshi left a 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?

@harshil21
Copy link
Member Author

all good

@Bibo-Joshi Bibo-Joshi merged commit cfc75bb into master Jun 30, 2024
23 of 27 checks passed
@Bibo-Joshi Bibo-Joshi deleted the bump-ruff branch June 30, 2024 16:22
@github-actions github-actions bot locked and limited conversation to collaborators Jul 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🛠 code-quality change type: code-quality ⚙️ examples affected functionality: examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy