-
Notifications
You must be signed in to change notification settings - Fork 36
Conform one line comments to PEP8 #68
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
base: master
Are you sure you want to change the base?
Conversation
Improves code readability
|
|
||
| def get_event(string): | ||
| """Returns the event""" | ||
| # Returns the event |
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.
Revert this everywhere in the file. This is called docstring. Please read: [https://www.python.org/dev/peps/pep-0257/#id16](One line docstring)
|
|
||
| def get_details(event): | ||
| """Returns the details of the event according to the type of the event""" | ||
| # Returns the details of the event according to the type of the event |
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.
Revert this.
|
|
||
| def check_for_fork(link, user): | ||
| """Check whether it is a forked.""" | ||
| # Check whether it is a fork |
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.
Revert this
|
|
||
| def get_local_time(string): | ||
| """Returns the local time.""" | ||
| # Returns the local time |
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.
Revert this
|
|
||
| def get_following_users(user): | ||
| """prints the users followed by current user""" | ||
| # prints the users followed by current user |
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.
Revert this
|
|
||
| def get_basic_info(user): | ||
| """Prints the user's basic info.""" | ||
| # Prints the user's basic info |
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.
Revert this
|
|
||
| def convert_to_local(string): | ||
| """Returns the local_stamp as string.""" | ||
| # Returns the local_stamp as string |
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.
Revert this
|
|
||
| def update(): | ||
| """Runs the upgrade command and upgrades git-stalk""" | ||
| # Runs the upgrade command and upgrades git-stalk |
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.
Revert this
|
|
||
| def filter_since_until_dates(events, since_date=None, until_date=None): | ||
| """Filters the events based on since and until dates""" | ||
| # Filters the events based on since and until dates |
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.
Revert this
|
|
||
| def get_dates_from_arguments(arguments): | ||
| """Return triplet of dates from given arguments.""" | ||
| # Return triplet of dates from given arguments |
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.
Revert this
|
Remove conflicts as well. |
Improves code readability