-
Notifications
You must be signed in to change notification settings - Fork 6k
Tighten pre commit #2131
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
Tighten pre commit #2131
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.
Hey there. Relax, I am just a little warning for the maintainers to release directly after merging your PR, otherwise we have broken examples and people might get confused :)
Note: I just added type hinting and did some renaming. So we're good.
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.
Hey there. Relax, I am just a little warning for the maintainers to release directly after merging your PR, otherwise we have broken examples and people might get confused :)
# Conflicts: # telegram/chat.py # telegram/chatmember.py # telegram/dice.py # telegram/files/sticker.py # telegram/messageentity.py # telegram/poll.py
# Conflicts: # examples/timerbot.py # telegram/chat.py # telegram/chatmember.py # telegram/dice.py # telegram/ext/basepersistence.py # telegram/ext/conversationhandler.py # telegram/files/sticker.py # telegram/message.py # telegram/messageentity.py # telegram/poll.py
# Conflicts: # telegram/user.py # tests/test_conversationhandler.py
# Conflicts: # telegram/ext/filters.py
We recently switched to Black formatting to increase code quality and I thought it would be good to also tighten the other precommit hooks. This PR
TBH the result turned out to be not as great as I had hoped :D Most of the pylint complains that arose I simply disabled either on that very line, some on module level and a bunch globally. I did some improvements like
elifsafterreturnsIMO this PR still helps improve code quality as it
# pylint: disable=comments. Currently you just don't know that there are warnings.But of course the benefit is not arbitrarily high, so I'd be okay with closing if the the other devs don't see the value of this PR :)