Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Sourcery Starbot ⭐ refactored falcorocks/piprot #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SourceryAI
Copy link

Thanks for starring sourcery-ai/sourcery ✨ 🌟 ✨

Here's your pull request refactoring your most popular Python repo.

If you want Sourcery to refactor all your Python repos and incoming pull requests install our bot.

Review changes via command line

To manually merge these changes, make sure you're on the master branch, then run:

git fetch https://github.com/sourcery-ai-bot/piprot master
git merge --ff-only FETCH_HEAD
git reset HEAD^

Comment on lines -174 to +178
if version:
if verbose:
if verbose:
if version:
print('{} ({}) isn\'t available on PyPI '
'anymore!'.format(requirement, version))
else:
if verbose:
else:
Copy link
Author

Choose a reason for hiding this comment

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

Function get_version_and_release_date refactored with the following changes:

Comment on lines -309 to +308
total_time_delta = total_time_delta + time_delta
total_time_delta += time_delta
Copy link
Author

Choose a reason for hiding this comment

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

Function main refactored with the following changes:

Comment on lines -436 to -440
if cli_args.quiet:
verbose = False
elif cli_args.verbatim:
if cli_args.quiet or cli_args.verbatim:
verbose = False

Copy link
Author

Choose a reason for hiding this comment

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

Function piprot refactored with the following changes:

Comment on lines -45 to +49
if response.status_code == 200:
api_response = json.loads(response.text)
return api_response['default_branch']
else:
if response.status_code != 200:
return 'master'

api_response = json.loads(response.text)
return api_response['default_branch']
Copy link
Author

Choose a reason for hiding this comment

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

Function get_default_branch refactored with the following changes:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant