Skip to content

Added limited delta status at cli - #135

Closed
ankit2001 wants to merge 1 commit into
aboutcode-org:developfrom
ankit2001:develop
Closed

Added limited delta status at cli#135
ankit2001 wants to merge 1 commit into
aboutcode-org:developfrom
ankit2001:develop

Conversation

@ankit2001

Copy link
Copy Markdown

Screenshot from 2020-03-13 12-45-38
This pr is meant to solve issue #130
please review ir @MaJuRG

Comment thread src/deltacode/cli.py Outdated
outfile.write('\n')
# Output delta_stats at cli
status=deltacode.stats.to_dict()
click.echo("\nDelta stats .....\n")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would change .... to :

Comment thread src/deltacode/cli.py Outdated
status=deltacode.stats.to_dict()
click.echo("\nDelta stats .....\n")
for stat, value in status.iteritems():
click.echo(str(stat) + " : " + str(value))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we really need to cast as str here?

@ankit2001

Copy link
Copy Markdown
Author

Screenshot from 2020-03-13 23-17-13
@MaJuRG please review

@steven-esser steven-esser left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

See inline comments.

Also, you should improve your commit messages. A commit message of "Updates" tells me nothing of what has been done. See: https://chris.beams.io/posts/git-commit/

Please rebase your "updates" commits into a single commit and update the commit message to something more detailed using the link above.

Comment thread src/deltacode/cli.py Outdated
click.echo("\nDelta stats :\n")
for stat, value in status.iteritems():
click.echo("{} : {}".format(stat,value))
#click.echo("\n")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Get rid of this commented out line if it is not needed.

Comment thread src/deltacode/cli.py Outdated
simplejson.dump(results, outfile, iterable_as_array=True, indent=2)
outfile.write('\n')
# Output delta_stats at cli
status=deltacode.stats.to_dict()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Variable assignments should be separated by spaces.

Signed-off-by: ankit2001 <ankitchoudhary202.ac@gmail.com>
@ankit2001

Copy link
Copy Markdown
Author

I have rebased it into single commit ,
@MaJuRG please review it.

@ankit2001 ankit2001 closed this Mar 14, 2020
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