Skip to content

Conversation

@dhermes
Copy link
Contributor

@dhermes dhermes commented Nov 9, 2016

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.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 9, 2016
@daspecster
Copy link
Contributor

daspecster commented Nov 9, 2016

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

@dhermes
Copy link
Contributor Author

dhermes commented Nov 9, 2016

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

@daspecster
Copy link
Contributor

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

@daspecster
Copy link
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.

@daspecster
Copy link
Contributor

Also this LGTM after the rebase and travs going green.

@dhermes
Copy link
Contributor Author

dhermes commented Nov 10, 2016

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.

Done via:

$ git grep -l 'def _getTargetClass(self)' | \
> xargs sed -i s/'def _getTargetClass(self)'/'@staticmethod\n    def _get_target_class()'/g
Done via:

$ git grep -l _getTargetClass | \
> xargs sed -i s/_getTargetClass/_get_target_class/g
Done via:

$ git grep -l _makeOne | \
> xargs sed -i s/_makeOne/_make_one/g
Done via:

$ git grep -l _callFUT | \
> xargs sed -i s/_callFUT/_call_fut/g
@dhermes dhermes force-pushed the pep8-names-in-tests branch from 34b1e17 to affb4a3 Compare November 10, 2016 19:13
@dhermes
Copy link
Contributor Author

dhermes commented Nov 10, 2016

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

@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
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
atulep pushed a commit that referenced this pull request Apr 3, 2023
Use PEP8 names in test helper methods
atulep pushed a commit that referenced this pull request Apr 18, 2023
Use PEP8 names in test helper methods
parthea pushed a commit that referenced this pull request Oct 22, 2023
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

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants