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 — Adding base pylint rcfile and plugin for unittests. by dhermes · Pull Request #221 · googleapis/google-cloud-python

Conversation

@dhermes

@dhermes dhermes commented Oct 4, 2014

Copy link
Copy Markdown
Contributor

No description provided.

Sorry, something went wrong.

Uh oh!

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

All reactions
@beriberikix beriberikix added the in progress label Oct 4, 2014
@dhermes

dhermes commented Oct 4, 2014

Copy link
Copy Markdown
Contributor Author

@tseaver This is a start towards getting our code clean without having to sprinkle comments as you mentioned before.

I had a lot of fun learning a bit about the internals of pylint and astroid. However, I'm not sure building a world class code inspection library is worth the trade-off relative to just using pylint: disable.

LMK what you think.

All reactions

Sorry, something went wrong.

Uh oh!

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

@coveralls

coveralls commented Oct 4, 2014

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.0%) when pulling 67417e0 on dhermes:unittest-pylint-plugin into e30de64 on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes dhermes mentioned this pull request Oct 4, 2014
Making all modules in gcloud package pylint compliant. #210
Closed
@dhermes dhermes added the hygiene label Oct 5, 2014
@dhermes

dhermes commented Oct 6, 2014

Copy link
Copy Markdown
Contributor Author

@silvolu @tseaver Here

All reactions

Sorry, something went wrong.

Uh oh!

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

@silvolu

silvolu commented Oct 6, 2014

Copy link
Copy Markdown
Contributor

The plugin looks very slick, but I'm worried about the maintenance cost; also, if I understand correctly, comments are the most common way of handling this, is that correct?

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes

dhermes commented Oct 6, 2014

Copy link
Copy Markdown
Contributor Author

I'm trying to read up on best practices / things people do on the web.

This comment seems interesting:

QUES: How do you handle people adding lots of pylint disable commands? We fail the build on pylint on pylint errors, and Django/Celery peculiarities require us to disable those messages to prevent build failures. Unfortunately, that practice has spread, and we have lots disable statements for things that truly are code smell (e.g. too many local variables, etc.).

ANS: We have a custom .pylintrc file that is under source control. Disabling checks inline is not permissable and changes to the .pylintrc file are carefully reviewed for appropriateness.

I'm also looking into pyflakes as a SO post seems to indicate it is a nice best practice as well.

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver

tseaver commented Oct 7, 2014

Copy link
Copy Markdown
Contributor

As in that answer, ISTM that enforcing project policy through a .pylintrc file and a ban on inline comments disabling lint leads to the best code quality.

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes

dhermes commented Oct 7, 2014

Copy link
Copy Markdown
Contributor Author

Yes it seems to be a policy which is alive and well in the Python ecosystem. I'd be interested to hear what people do in cases like this.

In reality, a class with 47 public methods is doing too much, but having pylint complain about the 47 public methods "owned" by our unittest2.TestCase subclass is a bit silly. I'm not sure how one modifies it as the only setting I know of is

[DESIGN]
max-public-methods=20
All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes
dhermes force-pushed the unittest-pylint-plugin branch 2 times, most recently from e2dfbce to f85eeba Compare October 7, 2014 03:57
@coveralls

coveralls commented Oct 7, 2014

Copy link
Copy Markdown

Coverage Status

Changes Unknown when pulling f85eeba on dhermes:unittest-pylint-plugin into * on GoogleCloudPlatform:master*.

All reactions

Sorry, something went wrong.

Uh oh!

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

@coveralls

coveralls commented Oct 7, 2014

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.0%) when pulling f85eeba on dhermes:unittest-pylint-plugin into 6dd5f2b on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes
dhermes force-pushed the unittest-pylint-plugin branch 2 times, most recently from 063031d to 21b4574 Compare October 7, 2014 18:38
tseaver
tseaver reviewed Oct 7, 2014
View reviewed changes
Comment thread gcloud/test_credentials.py

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

@tseaver

tseaver commented Oct 7, 2014

Copy link
Copy Markdown
Contributor

Feel free to ignore the other "Invert the test and nest the following code?" comments if you don't find the first helpful.

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes

dhermes commented Oct 7, 2014

Copy link
Copy Markdown
Contributor Author

Gotcher. I will handle uniformly depending on the resolution of our discussion.

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver tseaver added the testing label Oct 7, 2014
parthea pushed a commit that referenced this pull request Jun 4, 2023
@gcf-owl-bot
chore(deps): update actions/setup-python action to v4 [autoapprove] (#…
fd72e33
…221)

Source-Link: googleapis/synthtool@8e55b32
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:c6c965a4bf40c19011b11f87dbc801a66d3a23fbc6704102be064ef31c51f1c3

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea added a commit that referenced this pull request Jul 6, 2023
@parthea
chore: assign googleapis/cdpe-cloudai as codeowner (#221)
0001d09
assign @googleapis/cdpe-cloudai as codeowner
parthea added a commit that referenced this pull request Jul 6, 2023
@gcf-owl-bot @parthea
fix(deps): require protobuf >= 3.20.2 (#221)
3bf2a57
* chore: exclude requirements.txt file from renovate-bot

Source-Link: googleapis/synthtool@f58d313
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:7a40313731a7cb1454eef6b33d3446ebb121836738dc3ab3d2d3ded5268c35b6

* update constraints files

* fix(deps): require protobuf 3.20.2

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <[email protected]>
parthea pushed a commit that referenced this pull request Aug 15, 2023
@gcf-owl-bot
feat(v3): added the display name of the current page in webhook reque…
2d6f48d
…sts (#221)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 417856712

Source-Link: googleapis/googleapis@285ed91

Source-Link: googleapis/googleapis-gen@7d52805
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiN2Q1MjgwNTc3MjRlMWQ0Mjg4MmE3YmNkNjdiZmEwNjk1MWNiZjFjYSJ9
parthea pushed a commit that referenced this pull request Aug 15, 2023
@release-please
chore(main): release 1.8.0 (#228)
d15af24
🤖 I have created a release *beep* *boop*
---


## [1.8.0](googleapis/python-dialogflow-cx@v1.7.0...v1.8.0) (2022-01-14)


### Features

* **v3:** added `TelephonyTransferCall` in response message ([#216](googleapis/python-dialogflow-cx#216)) ([76dae8b](googleapis/python-dialogflow-cx@76dae8b))
* **v3:** added the display name of the current page in webhook requests ([#221](googleapis/python-dialogflow-cx#221)) ([aa91b72](googleapis/python-dialogflow-cx@aa91b72))
* **v3:** allow setting custom CA for generic webhooks ([#214](googleapis/python-dialogflow-cx#214)) ([8f3dc03](googleapis/python-dialogflow-cx@8f3dc03))
* **v3beta1:** added `TelephonyTransferCall` in response message ([#217](googleapis/python-dialogflow-cx#217)) ([e24bdfd](googleapis/python-dialogflow-cx@e24bdfd))
* **v3beta1:** added the display name of the current page in webhook requests ([#222](googleapis/python-dialogflow-cx#222)) ([5956179](googleapis/python-dialogflow-cx@5956179))
* **v3:** release CompareVersions API ([8f3dc03](googleapis/python-dialogflow-cx@8f3dc03))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
parthea pushed a commit that referenced this pull request Aug 15, 2023
@gcf-owl-bot
chore(deps): update actions/setup-python action to v4 [autoapprove] (#…
7a5a3c2
…221)

Source-Link: googleapis/synthtool@8e55b32
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:c6c965a4bf40c19011b11f87dbc801a66d3a23fbc6704102be064ef31c51f1c3
parthea added a commit that referenced this pull request Sep 14, 2023
@gcf-owl-bot @parthea
fix(deps): Require google-api-core >=1.34.0, >=2.11.0 (#221)
7271f51
* fix(deps): Require google-api-core >=1.34.0, >=2.11.0

fix: Drop usage of pkg_resources

fix: Fix timeout default values

docs(samples): Snippetgen should call await on the operation coroutine before calling result

PiperOrigin-RevId: 493260409

Source-Link: googleapis/googleapis@fea4387

Source-Link: googleapis/googleapis-gen@387b734
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzg3YjczNDRjNzUyOWVlNDRiZTg0ZTYxM2IxOWE4MjA1MDhjNjEyYiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* add gapic_version.py

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <[email protected]>
parthea pushed a commit that referenced this pull request Sep 20, 2023
@gcf-owl-bot
chore: use gapic-generator-python 0.65.2 (#221)
ee316f0
* chore: use gapic-generator-python 0.65.2

PiperOrigin-RevId: 444333013

Source-Link: googleapis/googleapis@f91b6cf

Source-Link: googleapis/googleapis-gen@16eb360
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTZlYjM2MDk1YzI5NGU3MTJjNzRhMWJmMjM1NTA4MTdiNDIxNzRlNSJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Sep 20, 2023
@renovate-bot
chore(deps): update dependency google-api-python-client to v2.57.0 (#221
13f73e2
)
vchudnov-g pushed a commit that referenced this pull request Sep 20, 2023
@yoshi-automation
chore: start tracking obsolete files (#221)
b3421bd
parthea pushed a commit that referenced this pull request Sep 22, 2023
@SurferJeffAtGoogle
chore: relocate owl bot post processor (#221)
8f103be
chore: relocate owl bot post processor
parthea pushed a commit that referenced this pull request Sep 22, 2023
@gcf-owl-bot
chore(python): Enable size-label bot (#221)
2121607
Source-Link: googleapis/synthtool@06e8279
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:b3500c053313dc34e07b1632ba9e4e589f4f77036a7cf39e1fe8906811ae0fce
parthea pushed a commit that referenced this pull request Sep 22, 2023
@renovate-bot
chore(deps): update dependency google-cloud-bigquery to v2.23.0 (#221)
2388157
parthea pushed a commit that referenced this pull request Sep 22, 2023
@gcf-owl-bot
chore(python): allow client documentation to be customized in README (#…
094363f
…221)

Source-Link: googleapis/synthtool@95d9289
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:c8878270182edaab99f2927969d4f700c3af265accd472c3425deedff2b7fd93

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Sep 22, 2023
@gcf-owl-bot
chore(python): refactor unit / system test dependency install (#221)
5274122
Source-Link: googleapis/synthtool@993985f
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:1894490910e891a385484514b22eb5133578897eb5b3c380e6d8ad475c6647cd
parthea pushed a commit that referenced this pull request Sep 22, 2023
@renovate-bot
chore(deps): update dependency pytest to v7.0.1 (#221)
26fe57f
[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [pytest](https://docs.pytest.org/en/latest/) ([source](https://togithub.com/pytest-dev/pytest), [changelog](https://docs.pytest.org/en/stable/changelog.html)) | `==7.0.0` -> `==7.0.1` | [![age](https://badges.renovateapi.com/packages/pypi/pytest/7.0.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/pytest/7.0.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/pytest/7.0.1/compatibility-slim/7.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/pytest/7.0.1/confidence-slim/7.0.0)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>pytest-dev/pytest</summary>

### [`v7.0.1`](https://togithub.com/pytest-dev/pytest/releases/7.0.1)

[Compare Source](https://togithub.com/pytest-dev/pytest/compare/7.0.0...7.0.1)

# pytest 7.0.1 (2022-02-11)

## Bug Fixes

-   [#&#8203;9608](https://togithub.com/pytest-dev/pytest/issues/9608): Fix invalid importing of `importlib.readers` in Python 3.9.
-   [#&#8203;9610](https://togithub.com/pytest-dev/pytest/issues/9610): Restore \[UnitTestFunction.obj]{.title-ref} to return unbound rather than bound method.
    Fixes a crash during a failed teardown in unittest TestCases with non-default \[\__init\_\_]{.title-ref}.
    Regressed in pytest 7.0.0.
-   [#&#8203;9636](https://togithub.com/pytest-dev/pytest/issues/9636): The `pythonpath` plugin was renamed to `python_path`. This avoids a conflict with the `pytest-pythonpath` plugin.
-   [#&#8203;9642](https://togithub.com/pytest-dev/pytest/issues/9642): Fix running tests by id with `::` in the parametrize portion.
-   [#&#8203;9643](https://togithub.com/pytest-dev/pytest/issues/9643): Delay issuing a `~pytest.PytestWarning`{.interpreted-text role="class"} about diamond inheritance involving `~pytest.Item`{.interpreted-text role="class"} and
    `~pytest.Collector`{.interpreted-text role="class"} so it can be filtered using `standard warning filters <warnings>`{.interpreted-text role="ref"}.

</details>

---

### Configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/python-tasks).
parthea pushed a commit that referenced this pull request Sep 22, 2023
@gcf-owl-bot
feat: update v1 proto (#221)
c2098a5
* feat: update v1 proto

PiperOrigin-RevId: 410256789

Source-Link: googleapis/googleapis@b3ff183

Source-Link: googleapis/googleapis-gen@488fbdc
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDg4ZmJkYzQ2OTYyZDhiMGM3N2FmNzA2ZmFhNTUyYjlmYjVhNzFiOCJ9

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Sep 22, 2023
@release-please
chore: release 2.9.0 (#222)
1c99069
🤖 I have created a release \*beep\* \*boop\*
---
## [2.9.0](https://www.github.com/googleapis/python-texttospeech/compare/v2.8.0...v2.9.0) (2021-11-16)


### Features

* update v1 proto ([#221](https://www.github.com/googleapis/python-texttospeech/issues/221)) ([e8776d7](https://www.github.com/googleapis/python-texttospeech/commit/e8776d7a482f495ed5ae0e1235609e3e2d3e6067))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
parthea pushed a commit that referenced this pull request Sep 22, 2023
@SurferJeffAtGoogle
chore: relocate owl bot post processor (#221)
83c132e
chore: relocate owl bot post processor
parthea pushed a commit that referenced this pull request Oct 21, 2023
@gcf-owl-bot
chore: fix prerelease_deps nox session [autoapprove] (#221)
cb2d6b8
Source-Link: https://togithub.com/googleapis/synthtool/commit/26c7505b2f76981ec1707b851e1595c8c06e90fc
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:f946c75373c2b0040e8e318c5e85d0cf46bc6e61d0a01f3ef94d8de974ac6790
parthea pushed a commit that referenced this pull request Oct 21, 2023
@renovate-bot
chore(deps): update dependency google-cloud-pubsub to v2.6.1 (#221)
d63833d
parthea pushed a commit that referenced this pull request Oct 21, 2023
@m-strzelczyk
chore(samples): Adding samples for custom hostname (#221)
3fa903e
* chore(samples): Adding samples for custom hostname

* chore(samples): Changing zone for tests, as europe-central2-c seems to have capcity issues with e2 instances.
parthea pushed a commit that referenced this pull request Oct 21, 2023
@gcf-owl-bot
chore: use python-samples-reviewers (#221)
0ba9628
parthea pushed a commit that referenced this pull request Oct 21, 2023
@gcf-owl-bot
chore(samples): Add check for tests in directory (#221)
dc101a5
Source-Link: googleapis/synthtool@52aef91
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:36a95b8f494e4674dc9eee9af98961293b51b86b3649942aac800ae6c1f796d4

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Oct 21, 2023
@gcf-owl-bot
chore: use gapic-generator-python 0.51.2 (#221)
bfd3aec
- [ ] Regenerate this pull request now.

fix: add 'dict' annotation type to 'request'

Committer: @busunkim96
PiperOrigin-RevId: 398509016

Source-Link: googleapis/googleapis@b224dfa

Source-Link: googleapis/googleapis-gen@63a1db7
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjNhMWRiN2EzOGQ3NGI5NjM5NTkyZjUyMWVkMWRhYWY3Mjk5YWQ5YSJ9
parthea pushed a commit that referenced this pull request Oct 21, 2023
@renovate-bot
chore(deps): update dependency google-cloud-vision to v2.4.2 (#221)
e495542
parthea pushed a commit that referenced this pull request Oct 21, 2023
@gcf-owl-bot
chore(python): disable dependency dashboard (#221)
30bbc37
parthea pushed a commit that referenced this pull request Oct 21, 2023
@gcf-owl-bot
chore(python): auto approve template changes (#221)
cb32975
Source-Link: googleapis/synthtool@453a5d9
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:81ed5ecdfc7cac5b699ba4537376f3563f6f04122c4ec9e735d3b3dc1d43dd32
parthea pushed a commit that referenced this pull request Oct 21, 2023
@release-please
chore(main): release 0.12.0 (#221)
4e52f12
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Oct 21, 2023
@renovate-bot
chore(deps): update dependency google-cloud-translate to v3.3.2 (#221)
20d7166
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

No one assigned

Labels

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.

5 participants

@dhermes @coveralls @silvolu @tseaver @beriberikix
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.