Skip to content

Commit

Permalink
chore(python): omit google/__init__.py in coverage (pylint-dev#483)
Browse files Browse the repository at this point in the history
Source-Link: googleapis/synthtool@694118b
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:ec49167c606648a063d1222220b48119c912562849a0528f35bfb592a9f72737

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Oct 26, 2021
1 parent d09ec3a commit 2f11ca9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
[run]
branch = True
omit =
google/__init__.py
google/cloud/__init__.py

[report]
Expand Down
2 changes: 1 addition & 1 deletion .github/.OwlBot.lock.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
digest: sha256:424d88d5d08ddd955782a4359559dc536e658db1a77416c9a4fff79df9519ad2
digest: sha256:ec49167c606648a063d1222220b48119c912562849a0528f35bfb592a9f72737
1 change: 1 addition & 0 deletions .kokoro/docs/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ env_vars: {

env_vars: {
key: "V2_STAGING_BUCKET"
# Push google cloud library docs to the Cloud RAD bucket `docs-staging-v2`
value: "docs-staging-v2"
}

Expand Down
5 changes: 2 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ def blacken(session):

@nox.session(python="3.7")
def pytype(session):
"""Run pytype
"""
"""Verify type hints are pytype compatible."""
session.install(PYTYPE_VERSION)
session.run("pytype",)

Expand Down Expand Up @@ -122,7 +121,7 @@ def default(session):
"py.test",
"--quiet",
f"--junitxml=unit_{session.python}_sponge_log.xml",
"--cov=google/cloud",
"--cov=google",
"--cov=tests/unit",
"--cov-append",
"--cov-config=.coveragerc",
Expand Down

0 comments on commit 2f11ca9

Please sign in to comment.