-
-
Notifications
You must be signed in to change notification settings - Fork 594
refactor: Run isort
and black
on all python files
#1859
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
isort
and black
on all python files Pre commit gh1674isort
and black
on all python files
def get_random_number(): | ||
return jsonify({'number': generate_random_number.generate_random_number()}) | ||
return jsonify({"number": generate_random_number.generate_random_number()}) | ||
|
||
|
||
"""Start the python web server""" |
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.
Move this docstring down to def main():
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.
Done.
@@ -15,5 +15,7 @@ | |||
import random | |||
|
|||
"""Generate a random number""" |
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.
Move docstring
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.
Done.
Run
isort
andblack
on all python files so that the pre-commithooks do not fail anymore.
It seems like most of the issues were quotation marks and vertical
whitespace.
Fixes #1674.