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 — Use PEP8 names in test helper methods by dhermes · Pull Request #2710 · googleapis/google-cloud-python

Conversation

@dhermes

@dhermes dhermes commented Nov 9, 2016

Copy link
Copy Markdown
Contributor

From discussion with @tseaver in #2681

Most of this PR was created from the command line, see the commit messages for the commands used to create the commits.

I also wanted to turn off the no-self-use disable in the test Pylint RC but it had too many offenders left to put in this PR.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dhermes dhermes added testing hygiene labels Nov 9, 2016
@dhermes dhermes assigned daspecster and tseaver Nov 9, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 9, 2016
@daspecster

daspecster commented Nov 9, 2016 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

@dhermes was this scripted at all?

Also, my internet may be slow or something but I can't even get the files view to load ATM.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Nov 9, 2016

Copy link
Copy Markdown
Contributor Author

Also, my internet may be slow or something but I can't even get the files view to load ATM.

It's probably not your internet, just the browser failing because of too much memory needed. May be easier to check out my branch locally.


was this scripted at all?

See my comment

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@daspecster

daspecster commented Nov 9, 2016

Copy link
Copy Markdown
Contributor

@dhermes oh I didn't expand the commit messages. That's cool.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@daspecster

daspecster commented Nov 9, 2016

Copy link
Copy Markdown
Contributor

What would it take to enable invalid-name, which we ignore, after this?

We could just update the regex that invalid-name uses. Just a thought.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@daspecster

daspecster commented Nov 9, 2016

Copy link
Copy Markdown
Contributor

Also this LGTM after the rebase and travs going green.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Nov 10, 2016

Copy link
Copy Markdown
Contributor Author

What would it take to enable invalid-name, which we ignore, after this?

I'd imagine a lot. We could probably get some mileage out of tweaking regexes.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dhermes added 5 commits November 10, 2016 11:04
@dhermes
Renaming _getTargetClass to _get_target_class.
a3c3478
Done via:

$ git grep -l 'def _getTargetClass(self)' | \
> xargs sed -i s/'def _getTargetClass(self)'/'@staticmethod\n    def _get_target_class()'/g
@dhermes
Changing uses of _getTargetClass to _get_target_class.
3a81c25
Done via:

$ git grep -l _getTargetClass | \
> xargs sed -i s/_getTargetClass/_get_target_class/g
@dhermes
Changing all instances of _makeOne to _make_one.
908fd1d
Done via:

$ git grep -l _makeOne | \
> xargs sed -i s/_makeOne/_make_one/g
@dhermes
Changing all instances of _callFUT to _call_fut.
50c7c8a
Done via:

$ git grep -l _callFUT | \
> xargs sed -i s/_callFUT/_call_fut/g
@dhermes
Manually fixing up bad indents / long lines after renames.
affb4a3
@dhermes
dhermes force-pushed the pep8-names-in-tests branch from 34b1e17 to affb4a3 Compare November 10, 2016 19:13
@dhermes

dhermes commented Nov 10, 2016

Copy link
Copy Markdown
Contributor Author

Just rebased. Will merge if/when at least one CI goes green.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes
dhermes merged commit 039f1cc into googleapis:master Nov 10, 2016
@dhermes
dhermes deleted the pep8-names-in-tests branch November 10, 2016 19:43
@dhermes dhermes mentioned this pull request Nov 18, 2016
Add GAE and GKE fluentd Handlers #2668
Merged
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
@dhermes
Merge pull request googleapis#2710 from dhermes/pep8-names-in-tests
c8b7e62
Use PEP8 names in test helper methods
@theacodes theacodes unassigned daspecster Sep 28, 2018
atulep pushed a commit that referenced this pull request Apr 3, 2023
@dhermes
Merge pull request #2710 from dhermes/pep8-names-in-tests
ec34d90
Use PEP8 names in test helper methods
atulep pushed a commit that referenced this pull request Apr 18, 2023
@dhermes
Merge pull request #2710 from dhermes/pep8-names-in-tests
9c23f66
Use PEP8 names in test helper methods
parthea pushed a commit that referenced this pull request Oct 22, 2023
@dhermes
Merge pull request #2710 from dhermes/pep8-names-in-tests
b66d2de
Use PEP8 names in test helper methods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@tseaver tseaver

Labels

cla: yes This human has signed the Contributor License Agreement. testing

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@dhermes @daspecster @tseaver @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.