GeezerVison is showing github.com — Make sure code is PEP8 compliant · Issue #179 · googleapis/google-cloud-python
Make sure code is PEP8 compliant #179Labels 🚨This issue needs some love.triage meI really want to be triaged. DescriptionRelated to #178
In cases where we actively violate PEP8, we should have our own custom pylintc (e.g.). Activityadded this to the This milestone has been deleted milestone on Sep 24, 2014dhermes commented on Sep 25, 2014 ContributorAuthor More actions Both pep8ify and pyfmt will rewrite code to adhere.
They both seem to be unsure of themselves when it comes to maximum_line_length.
After running, it'd be smart to check with git diff --color-words locally. Luckily GitHub also now has nice word highlighting in diffs. dhermes commented on Sep 25, 2014 ContributorAuthor More actions As an experiment I tried to get datastore/entity.py to conform. Notice that #188 has come up as an issue in f7de067 since the linter is fooled about the type of self.key().
@tseaver Can you take a look and let me know what you think?
Some notes:
-
Neither pep8ify nor pyfmt properly indent docstrings
-
pyfmt is much slower than pep8ify (at least on the first run)
-
pylint -E <file> only checks errors
-
pylint --reports=n <file> only shows the offending lines
-
All PyLint codes: http://pylint-messages.wikidot.com/all-codes
-
To get just the errors and the global evaluation score
pylint --disable=RP0001,RP0002,RP0003,RP0101,RP0401,RP0402,RP0701,RP0801 <file>
-
Adding color pylint --output-format=colorized
dhermes commented on Sep 25, 2014 ContributorAuthor More actions dhermes commented on Sep 27, 2014 ContributorAuthor More actions kleyow commented on Sep 28, 2014 @dhermes I'm in the process of cleaning as well pyflakes/pep8 just double checking, we using 2 space instead of 4 right? tseaver commented on Sep 28, 2014 We decided to move to 4 spaces (to ease community contributions). dhermes commented on Sep 28, 2014 ContributorAuthor More actions @kleyow Which files are you working on? Hoping to avoid double work.
Also, for tests without docstrings, are we OK with a global # pylint: disable=missing-docstring at the top? dhermes commented on Sep 28, 2014 ContributorAuthor More actions tseaver commented on Oct 13, 2014 #217 adds pep8-conformance to the tox tests.
MetadataMetadata🚨This issue needs some love.triage meI really want to be triaged. DevelopmentNo branches or pull requestsIssue actions
|