|
61 | 61 | # ---------------------------------------------------------------------------- |
62 | 62 |
|
63 | 63 | # Encourage sharring all relevant versions in bug reports. |
64 | | -s.replace( |
| 64 | +assert 1 == s.replace( |
65 | 65 | [".github/ISSUE_TEMPLATE/bug_report.md"], |
66 | 66 | re.escape("#### Steps to reproduce\n"), |
67 | 67 | textwrap.dedent( |
|
90 | 90 | ) |
91 | 91 |
|
92 | 92 | # Make sure build includes all necessary files. |
93 | | -s.replace( |
| 93 | +assert 1 == s.replace( |
94 | 94 | ["MANIFEST.in"], |
95 | 95 | re.escape("recursive-include google"), |
96 | 96 | "recursive-include third_party/bigframes_vendored *\nrecursive-include bigframes", |
97 | 97 | ) |
98 | 98 |
|
99 | 99 | # Even though BigQuery DataFrames isn't technically a client library, we are |
100 | 100 | # opting into Cloud RAD for docs hosting. |
101 | | -s.replace( |
| 101 | +assert 1 == s.replace( |
102 | 102 | [".kokoro/docs/common.cfg"], |
103 | 103 | re.escape('value: "docs-staging-v2-staging"'), |
104 | 104 | 'value: "docs-staging-v2"', |
105 | 105 | ) |
106 | 106 |
|
107 | 107 | # Use a custom table of contents since the default one isn't organized well |
108 | 108 | # enough for the number of classes we have. |
109 | | -s.replace( |
| 109 | +assert 1 == s.replace( |
110 | 110 | [".kokoro/publish-docs.sh"], |
111 | 111 | ( |
112 | 112 | re.escape("# upload docs") |
|
124 | 124 | ) |
125 | 125 |
|
126 | 126 | # Fixup the documentation. |
127 | | -s.replace( |
| 127 | +assert 1 == s.replace( |
128 | 128 | ["docs/conf.py"], |
129 | 129 | re.escape("Google Cloud Client Libraries for bigframes"), |
130 | 130 | "BigQuery DataFrames provides DataFrame APIs on the BigQuery engine", |
131 | 131 | ) |
132 | 132 |
|
133 | | -# Update the contributing guide to reflect some differences in this repo. |
134 | | -s.replace( |
135 | | - ["CONTRIBUTING.rst"], |
136 | | - re.escape("blacken"), |
137 | | - "format", |
138 | | -) |
139 | | - |
140 | 133 | # ---------------------------------------------------------------------------- |
141 | 134 | # Samples templates |
142 | 135 | # ---------------------------------------------------------------------------- |
|
0 commit comments