-
Notifications
You must be signed in to change notification settings - Fork 143
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
Replace print with logging in application.py #1612
Conversation
We do use |
Okay, so should I ignore the |
It's good to clean up those print statements and ensure none are left after debugging. 👍 Just noting that the |
Agreed, I like ruff as a flake8 and isort alternative. |
Ruff seems to gain popularity already. I don't know how stable it is at the moment but I am open for switching once it is. |
Fair enough. |
If @diivi wants to get this merged, this would be the fastest way. For extra points, he could add Ruff and make sure it detects the print statement. And we run it in parallel with flake8 for a while. Then remove it, once we are comfortable with it. Better to add a dependency with 10k stars than 100. |
Yup, ruff looks like a better alternative, I'll remove flake8-print from this PR and make a new one to add it in ruff. |
Sounds good to me.
If I look at past commits, |
Yeah, we will squash any ways. |
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.
There still is one print
in production code. But I don't think replacing it would make sense.
Line 50 in c7c935c
print(f"Vorta {__version__}") |
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.
Looks like a big improvement. 😄
#1611
Added flake8-print,
referred the flake-8 docs for additional-dependencies - https://flake8.pycqa.org/en/latest/user/using-hooks.html