Skip to content

Conversation

@tfidfwastaken
Copy link

Improves code readability

Improves code readability

def get_event(string):
"""Returns the event"""
# Returns the event
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert this

@ammarmallik
Copy link
Contributor

Remove conflicts as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants