GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Make sure code is PEP8 compliant · Issue #179 · googleapis/google-cloud-python

Make sure code is PEP8 compliant #179

New issue
Copy link
New issue
Copy link
Closed
Closed
Make sure code is PEP8 compliant#179
Copy link
Assignees
tseaver
Labels
🚨This issue needs some love.triage meI really want to be triaged.

Description

@dhermes
dhermes
opened on Sep 23, 2014
Issue body actions

Related to #178

In cases where we actively violate PEP8, we should have our own custom pylintc (e.g.).

Activity

Next
  1. tseaver
    added
    hygiene
    on Sep 23, 2014
  2. silvolu
    added this to the This milestone has been deleted milestone on Sep 24, 2014
  3. dhermes commented on Sep 25, 2014

    @dhermes
    dhermes
    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.

  4. dhermes commented on Sep 25, 2014

    @dhermes
    dhermes
    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

  5. dhermes commented on Sep 25, 2014

    @dhermes
    dhermes
    on Sep 25, 2014
    ContributorAuthor
    More actions

    I spent way too much time hacking on the ast but have a decent hack which I think will do the part missing in pep8ify, which is correct indenting of docstrings:
    https://gist.github.com/dhermes/85c3a3a464d2cff312ea

  6. dhermes commented on Sep 27, 2014

    @dhermes
    dhermes
    on Sep 27, 2014
    ContributorAuthor
    More actions

    I have two more branches:
    https://github.com/dhermes/gcloud-python/tree/pep8ify-gcloud-dir
    https://github.com/dhermes/gcloud-python/tree/pep8ify-setup

    UPDATE:
    I destroyed these branches by changing the gcloud-dir one into an upstream branch of the four indents PR (#207) and merging the setup one into the same PR.

  7. kleyow commented on Sep 28, 2014

    @kleyow
    kleyow
    on Sep 28, 2014
    Contributor
    More actions

    @dhermes I'm in the process of cleaning as well pyflakes/pep8 just double checking, we using 2 space instead of 4 right?

  8. tseaver commented on Sep 28, 2014

    @tseaver
    tseaver
    on Sep 28, 2014
    Contributor
    More actions

    We decided to move to 4 spaces (to ease community contributions).

  9. dhermes commented on Sep 28, 2014

    @dhermes
    dhermes
    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?

  10. dhermes commented on Sep 28, 2014

    @dhermes
    dhermes
    on Sep 28, 2014
    ContributorAuthor
    More actions

    Sorry, just saw #200

  11. tseaver commented on Oct 13, 2014

    @tseaver
    tseaver
    on Oct 13, 2014
    Contributor
    More actions

    #217 adds pep8-conformance to the tox tests.

  12. tseaver
    closed this as completedon Oct 13, 2014
  13. urshala
    added a commit that references this issue on Jan 17, 2020

    Merge pull request googleapis#179 from O365/improvements

    b571fe7
  14. yoshi-automation
    added
    triage meI really want to be triaged.
    🚨This issue needs some love.
    on Apr 6, 2020
  15. 67 remaining items

  16. parthea
    added 11 commits that reference this issue on Nov 24, 2025

    chore: release 1.27.0 (#179)

    81f8cff

    chore: release 0.8.0 (#179)

    916dcf5

    chore(deps): update actions/download-artifact action to v3 (#179)

    35d19dc

    chore: new owl bot post processor docker image (#179)

    245be61

    feat: support pandas 2.0 release candidate (#179)

    cc0fcb2

    chore: update dependency protobuf >= 3.20.2 (#179)

    dd1e063

    chore: [autoapprove] Update `black` and `isort` to latest versions (#179

    07e3543

    tests: clean up properly after completion (#179)

    678dfa9

    Use correct class when deserializing a PolyModel entity. (#186)

    f320b9f

    tests: clean up properly after completion (#179)

    48cc7c2

    Fix retrieval of default project ID on Windows (#179)

    3b071c9
  17. parthea
    added 4 commits that reference this issue on Mar 2, 2026

    feat: add _async_resumable_media experimental support (#179)

    cd7ed06

    django: fix text lookups if an underscore is in the value

    8f2e419

    chore: require samples checks (#179)

    f034bdf

    fix: use `id` field for Attributes instead of `name` (#179)

    7e1d89a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @tseaver
    tseaver

Labels

🚨This issue needs some love.triage meI really want to be triaged.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.