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. |
real-yfprojects
left a comment
There was a problem hiding this comment.
There still is one print in production code. But I don't think replacing it would make sense.
Line 50 in c7c935c
m3nu
left a comment
There was a problem hiding this comment.
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