Just a wrapper around autopep8 which run _only_ on the changed (non commited
Project description
A wrapper around [autopep8] which rums it only on non commited lines. I.E run git-diff between the worktree and this index and apply autopep8 only to there.
Why ?
Because autopep8 is nice but “There must be a better way”. (Highly recommended to watch).
Applying autopep8 (or even fixing manually) can break tools like git blame.
Extra changes (in whitespace, indent….) can distract reviewer from their tasks.
The fix is simple, pep-8 (or should I say pycodestyle) only the lines that are actively changed.
This will allow project that are not pep-8 complaint to progressivley become compliant if they wish. And does not prevent you from running on your changes.
TODO.
Support applying on a commit range instead of non-comited
Support non-git.
Limitations
Number of whitelines between function/classes might be wrong. Probably other things.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file friendlyautopep8-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: friendlyautopep8-0.0.2-py3-none-any.whl
- Upload date:
- Size: 16.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03abe1ceee14bbaf42eb1f35ca07335fcce01ac8411e00d0775a939c02cd8502 |
|
MD5 | 52aa023d0477d24f8c5ed945da56709c |
|
BLAKE2b-256 | 8f6c79823cc912e3f1a1bc7fd8ea190e697699ba29b98e7ad086a6d2fa1e695f |