Skip to content

Conversation

@tseaver
Copy link
Contributor

@tseaver tseaver commented Oct 16, 2014

See #239 for discussion.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) when pulling 84e181e on tseaver:239-remove_pragma_no_cover into c2c1d59 on GoogleCloudPlatform:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) when pulling 6497cd3 on tseaver:239-remove_pragma_no_cover into c2c1d59 on GoogleCloudPlatform:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 6497cd3 on tseaver:239-remove_pragma_no_cover into c2c1d59 on GoogleCloudPlatform:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 4c7b14b on tseaver:239-remove_pragma_no_cover into c2c1d59 on GoogleCloudPlatform:master.

@tseaver
Copy link
Contributor Author

tseaver commented Oct 16, 2014

The cleanup you are referring to in #238:

https://github.com/GoogleCloudPlatform/gcloud-python/pull/238/files#diff-131c11d8f72de47362212af2ee7c7791L871

Doesn't apply here, as the repeated definition is not present on master (or this branch). It could perhaps be factored out of 'gcloud.test_credentials' into something like 'gcloud._testing'.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 4c7b14b on tseaver:239-remove_pragma_no_cover into c2c1d59 on GoogleCloudPlatform:master.

@tseaver
Copy link
Contributor Author

tseaver commented Oct 16, 2014

I'm pretty displeased with the E124 and related errors pep8 is spitting out by default: there is no obviously-better way to spell assertions comparing data structures that doesn't fall afoul of one
or more of its rules. E.g., even after indenting one more space to the code in https://github.com/tseaver/gcloud-python/blob/63eb552e8d4a4616b60f8e55726cdbf9d098d3c3/gcloud/storage/test_connection.py#L587-L591, I sill ended up rewriting the assertions in 4c7b14b because I couldn't figure it out.

I'd just as soon turn of all their "hanging indent" checks.

@dhermes
Copy link
Contributor

dhermes commented Oct 16, 2014

RE: E124 see #238 (comment)

The main thrust is that things like

        self.assertEqual(params,
                        {'Signature': [SIGNED],
                         'Expires': ['1000'],
                         'GoogleAccessId': [_Credentials.service_account_name],
                        })

are actually against PEP8 because by having

        self.assertEqual(params,

does not make it a continuation.

To make it valid, it would have to actually be a continuation

        self.assertEqual(
            params,
            {'Signature': [SIGNED],
             'Expires': ['1000'],
             'GoogleAccessId': [_Credentials.service_account_name],
            })

@dhermes
Copy link
Contributor

dhermes commented Oct 16, 2014

@tseaver
Copy link
Contributor Author

tseaver commented Oct 16, 2014

Have a look at the examples under: http://legacy.python.org/dev/peps/pep-0008/#indentation

They do not require that the opening paren of a function call be the last character when wrapping. E.g., this is in the "OK" block:

# Aligned with opening delimiter.
foo = long_function_name(var_one, var_two,
                         var_three, var_four)

as is this for data structures:

my_list = [
    1, 2, 3,
    4, 5, 6,
    ]

@tseaver
Copy link
Contributor Author

tseaver commented Oct 16, 2014

The redundant '_Monkey' you point to is in 'gcloud.datastore.test_connection', which this PR doesn't touch: it does touch 'gcould.storage.test_connection', but reuses the '_Monkey' from 'gcloud.test_credentials'.

Incorporate feedback from @dhermes.
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling a6bf98f on tseaver:239-remove_pragma_no_cover into c2c1d59 on GoogleCloudPlatform:master.

@tseaver
Copy link
Contributor Author

tseaver commented Oct 16, 2014

See #250, which moves the '_Monkey' class into a new 'gcloud._testing' module (to avoid having one testcase module depend on another).

@tseaver
Copy link
Contributor Author

tseaver commented Oct 16, 2014

@dhermes My "arguing with the ref" about pep8 E124 is actually irrelevant to this PR, because I rewrote the problematic statements to avoid it altogether. Are there remaining issues?

@dhermes
Copy link
Contributor

dhermes commented Oct 16, 2014

Ah yes, good call.

This PR LGTM.

parthea pushed a commit that referenced this pull request Oct 21, 2023
🤖 I have created a release \*beep\* \*boop\*
---
## [2.7.0](https://www.github.com/googleapis/python-monitoring/compare/v2.6.0...v2.7.0) (2021-11-09)


### Features

* add CreateServiceTimeSeries RPC ([b347e70](https://www.github.com/googleapis/python-monitoring/commit/b347e7083ff04c04e287b7afc79c425a1d04f731))


### Bug Fixes

* **deps:** drop packaging dependency ([b347e70](https://www.github.com/googleapis/python-monitoring/commit/b347e7083ff04c04e287b7afc79c425a1d04f731))
* **deps:** require google-api-core >= 1.28.0 ([b347e70](https://www.github.com/googleapis/python-monitoring/commit/b347e7083ff04c04e287b7afc79c425a1d04f731))
* Reintroduce deprecated field/enum `ServiceTier` for backward compatibility ([b347e70](https://www.github.com/googleapis/python-monitoring/commit/b347e7083ff04c04e287b7afc79c425a1d04f731))


### Miscellaneous Chores

* release as 2.7.0 ([#247](https://www.github.com/googleapis/python-monitoring/issues/247)) ([b347e70](https://www.github.com/googleapis/python-monitoring/commit/b347e7083ff04c04e287b7afc79c425a1d04f731))


### Documentation

* list oneofs in docstring ([b347e70](https://www.github.com/googleapis/python-monitoring/commit/b347e7083ff04c04e287b7afc79c425a1d04f731))
* Use absolute link targets in comments ([b347e70](https://www.github.com/googleapis/python-monitoring/commit/b347e7083ff04c04e287b7afc79c425a1d04f731))
---


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 Oct 21, 2023
[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [google-cloud-storage](https://togithub.com/googleapis/python-storage) | `==1.42.0` -> `==1.42.1` | [![age](https://badges.renovateapi.com/packages/pypi/google-cloud-storage/1.42.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-cloud-storage/1.42.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-cloud-storage/1.42.1/compatibility-slim/1.42.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-cloud-storage/1.42.1/confidence-slim/1.42.0)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>googleapis/python-storage</summary>

### [`v1.42.1`](https://togithub.com/googleapis/python-storage/blob/master/CHANGELOG.md#&#8203;1421-httpswwwgithubcomgoogleapispython-storagecomparev1420v1421-2021-09-07)

[Compare Source](https://togithub.com/googleapis/python-storage/compare/v1.42.0...v1.42.1)

</details>

---

### Configuration

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

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

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

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

---

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

---

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-translate).
parthea added a commit that referenced this pull request Oct 21, 2023
* chore(deps): update all dependencies

* 🦉 Updates from OwlBot post-processor

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

* revert

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <[email protected]>
parthea added a commit that referenced this pull request Oct 21, 2023
* chore(deps): update all dependencies

* 🦉 Updates from OwlBot post-processor

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

* revert

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 Oct 22, 2023
Source-Link: https://togithub.com/googleapis/synthtool/commit/eaef28efd179e6eeb9f4e9bf697530d074a6f3b9
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:f8ca7655fa8a449cadcabcbce4054f593dcbae7aeeab34aa3fcc8b5cf7a93c9e
parthea pushed a commit that referenced this pull request Oct 22, 2023
* fix: Add async context manager return types

chore: Mock return_value should not populate oneof message fields

chore: Support snippet generation for services that only support REST transport

chore: Update gapic-generator-python to v1.11.0
PiperOrigin-RevId: 545430278

Source-Link: googleapis/googleapis@601b532

Source-Link: googleapis/googleapis-gen@b3f18d0
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjNmMThkMGY2NTYwYTg1NTAyMmZkMDU4ODY1ZTc2MjA0NzlkN2FmOSJ9

* 🦉 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 Oct 22, 2023
…on time series tables (#248)

* feat: added support for horizontal bar rendering and column settings on time series tables

PiperOrigin-RevId: 501316608

Source-Link: googleapis/googleapis@09d97e0

Source-Link: googleapis/googleapis-gen@8085bab
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiODA4NWJhYjFiZGY0YjlkNzAwN2RkOTRmNWQ2Yzk3NTg4OGExNGQ3MyJ9

* 🦉 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 added a commit that referenced this pull request Oct 22, 2023
* chore(deps): update all dependencies

* 🦉 Updates from OwlBot post-processor

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

* revert

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 Oct 31, 2023
…p/templates/python_library/.kokoro (#248)

Source-Link: https://togithub.com/googleapis/synthtool/commit/bb171351c3946d3c3c32e60f5f18cee8c464ec51
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:f62c53736eccb0c4934a3ea9316e0d57696bb49c1a7c86c726e9bb8a2f87dadf
parthea pushed a commit that referenced this pull request Dec 20, 2024
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Aug 21, 2025
Source-Link: googleapis/synthtool@dd05f9d
Post-Processor: gcr.io/repo-automation-bots/owlbot-python:latest@sha256:aea14a583128771ae8aefa364e1652f3c56070168ef31beb203534222d842b8b
parthea pushed a commit that referenced this pull request Sep 16, 2025
Source-Link: googleapis/synthtool@dd05f9d
Post-Processor: gcr.io/repo-automation-bots/owlbot-python:latest@sha256:aea14a583128771ae8aefa364e1652f3c56070168ef31beb203534222d842b8b
parthea pushed a commit that referenced this pull request Nov 22, 2025
parthea pushed a commit that referenced this pull request Nov 24, 2025
In order to preserve the interface of legacy client construction,
client constructors take a
'google.api_core.client_options.ClientOptions' parameter.

Currently, this option only customizes the api endpoint, but other
customizations may be enabled.

Includes generated unit tests.

Implementation for #227
parthea pushed a commit that referenced this pull request Nov 24, 2025
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Nov 24, 2025
parthea pushed a commit that referenced this pull request Nov 24, 2025
* feat: add api_key to client options

* update
parthea added a commit that referenced this pull request Nov 24, 2025
This PR fixes an issue with the `owlbot.py` file which prevented [google/cloud/datastore_v1](https://github.com/googleapis/python-datastore/commits/main/google/cloud/datastore_v1) from being updated. This PR also brings the client up to date with the generated client in googleapis-gen [here](https://github.com/googleapis/googleapis-gen/tree/master/google/datastore).

chore: update owlbot.py to properly copy folders from googleapis-gen
fix(deps): require google-api-core >= 1.28.0
docs: list oneofs in docstring
feat: add context manager support in client
fix: add 'dict' annotation type to 'request'
fix: add async client to %name_%version/init.py
feat: support self-signed JWT flow for service accounts 
feat: Added methods for creating and deleting composite indexes
parthea pushed a commit that referenced this pull request Nov 24, 2025
Source-Link: googleapis/synthtool@d895aec
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:98f3afd11308259de6e828e37376d18867fd321aba07826e29e4f8d9cab56bad

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Nov 24, 2025
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Nov 24, 2025
* chore: Adjust Error Reporting branding in documentation

In line with product branding guidelines, the product is 'Error
Reporting' and can be referred to as 'Google Cloud Error Reporting'
when appropriate, but not 'Cloud Error Reporting'
fixes #248

* Adjust brand name in repo metadata

Co-authored-by: losalex <[email protected]>
parthea pushed a commit that referenced this pull request Nov 24, 2025
* docs: adds UPGRADING.md, not to readme, to help inform users about migration to v2

* docs: erroneous version number

* Update UPGRADING.md

Co-authored-by: BenWhitehead <[email protected]>

* docs: clarify enums statement

* docs: add migration section to docs index

Co-authored-by: BenWhitehead <[email protected]>
parthea pushed a commit that referenced this pull request Nov 24, 2025
This fixes issues, generally, with the handling of repeated properties
with projection queries, but also specifically for the "class" property
of PolyModel entities.

Fixes #248
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants