Skip to main content

Tidy up (autopep8) only the lines in the files touched in the git or hg branch/commit.

Project description

Better-Than-You-Found-It (btyfi) aka pep8radius

Clean (using autopep8) only the parts of the files which you have touched in the last commit, or against another commit/branch.

Pep8 “storms” (fixing pep8 infractions across the entire project) often cause merge conflicts and break git blame, but you can still “leave it better than you found it” by ensuring that the parts of the project which you touch satisfy pep8.

Currently Supports

git and hg

Usage

  • Move to project directory

  • Make some changes to the project

  • Run btyfi

  • Commit your changes

Against a branch you can use the same syntax as with git diff:

  • btyfi master # branch name

  • btyfi c12166f   # commit hash

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pep8radius-0.4.tar.gz (5.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page