Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small pylint clean-up. #1780

Merged
merged 1 commit into from
May 9, 2016
Merged

Conversation

dhermes
Copy link
Contributor

@dhermes dhermes commented May 6, 2016

  • Removing some ignore statements by moving some grpc sub-packages/sub-modules into "ignored-modules"
  • Increasing test lines limit to 1900 and removing a line limit ignore at the top of the file
  • Making remaining disables use verbose names instead of short names
  • Locally re-enabling too-many-statements in gcloud/bigquery/test_table.py (was disabled at a scope but never re-enabled)

@tseaver This was inspired by #1779 (e.g. my comment made me wonder about this)

@dhermes dhermes added the hygiene label May 6, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 6, 2016
@tseaver
Copy link
Contributor

tseaver commented May 6, 2016

I'd be in favor of globally disabling no-name-in-module: we have real tests which exercise the imports, and don't need pylint's buggy version of not-really-import to "help".

@dhermes
Copy link
Contributor Author

dhermes commented May 6, 2016

Good point. 100% code coverage makes all true import failures abundantly clear.

@dhermes
Copy link
Contributor Author

dhermes commented May 6, 2016

@tseaver PTAL

@@ -87,6 +87,10 @@ load-plugins=pylint.extensions.check_docs
# """Hi everyone"""
# and thus causes subsequent imports to be
# diagnosed as out-of-order.
# - wrong-import-position: This error is overzealous. It assumes imports are

This comment was marked as spam.

This comment was marked as spam.

@dhermes
Copy link
Contributor Author

dhermes commented May 9, 2016

OK @tseaver I got rid of the erroneous line. Is this good to merge (after squashing)?

@tseaver
Copy link
Contributor

tseaver commented May 9, 2016

LGTM

- Increasing test lines limit to 1900 and removing a
  line limit ignore at the top of the file
- Disabling no-name-in-module since requiring 100%
  code coverage guarantees we exercise all imports
- Making remaining disables use verbose names instead of
  short names
- Locally re-enabling too-many-statements in
  gcloud/bigquery/test_table.py (was disabled at a scope
  but never re-enabled)
@dhermes dhermes force-pushed the tiny-pylint-cleanup branch from bfd32e7 to 0352542 Compare May 9, 2016 18:09
@dhermes dhermes merged commit 22634ab into googleapis:master May 9, 2016
@dhermes dhermes deleted the tiny-pylint-cleanup branch May 9, 2016 18:25
@tseaver tseaver mentioned this pull request May 16, 2016
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants