Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 17 additions & 11 deletions owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
s.replace(
library / f"google/cloud/bigquery_{library.name}/types/standard_sql.py",
r"type_ ",
"type "
"type ",
)

s.move(
Expand All @@ -78,8 +78,8 @@
"noxfile.py",
"setup.py",
f"scripts/fixup_bigquery_{library.name}_keywords.py",
f"google/cloud/bigquery/__init__.py",
f"google/cloud/bigquery/py.typed",
"google/cloud/bigquery/__init__.py",
"google/cloud/bigquery/py.typed",
# There are no public API endpoints for the generated ModelServiceClient,
# thus there's no point in generating it and its tests.
f"google/cloud/bigquery_{library.name}/services/**",
Expand All @@ -98,9 +98,9 @@
microgenerator=True,
split_system_tests=True,
intersphinx_dependencies={
"pandas": 'http://pandas.pydata.org/pandas-docs/dev',
"pandas": "http://pandas.pydata.org/pandas-docs/dev",
"geopandas": "https://geopandas.org/",
}
},
)

# BigQuery has a custom multiprocessing note
Expand All @@ -113,7 +113,11 @@
# Include custom SNIPPETS_TESTS job for performance.
# https://github.com/googleapis/python-bigquery/issues/191
".kokoro/presubmit/presubmit.cfg",
]
# Group all renovate PRs together. If this works well, remove this and
# update the shared templates (possibly with configuration option to
# py_library.)
"renovate.json",
],
)

# ----------------------------------------------------------------------------
Expand All @@ -125,28 +129,29 @@
s.replace(
"docs/conf.py",
r'\{"members": True\}',
'{"members": True, "inherited-members": True}'
'{"members": True, "inherited-members": True}',
)

# Tell Sphinx to ingore autogenerated docs files.
s.replace(
"docs/conf.py",
r'"samples/snippets/README\.rst",',
'\g<0>\n "bigquery_v2/services.rst", # generated by the code generator',
'\\g<0>\n "bigquery_v2/services.rst", # generated by the code generator',
)

# ----------------------------------------------------------------------------
# pytype-related changes
# ----------------------------------------------------------------------------

# Add .pytype to .gitignore
s.replace(".gitignore", r"\.pytest_cache", "\g<0>\n.pytype")
s.replace(".gitignore", r"\.pytest_cache", "\\g<0>\n.pytype")

# Add pytype config to setup.cfg
s.replace(
"setup.cfg",
r"universal = 1",
textwrap.dedent(""" \g<0>
textwrap.dedent(
""" \\g<0>

[pytype]
python_version = 3.8
Expand All @@ -160,7 +165,8 @@
# There's some issue with finding some pyi files, thus disabling.
# The issue https://github.com/google/pytype/issues/150 is closed, but the
# error still occurs for some reason.
pyi-error""")
pyi-error"""
),
)

s.shell.run(["nox", "-s", "blacken"], hide_output=False)
2 changes: 1 addition & 1 deletion renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": [
"config:base", ":preserveSemverRanges"
"config:base", "group:all", ":preserveSemverRanges"
],
"ignorePaths": [".pre-commit-config.yaml"],
"pip_requirements": {
Expand Down