Skip to content

Commit dc75528

Browse files
chore: enable warnings as errors in docs build (#522)
* chore: enable warnings as errors in docs build * 🦉 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>
1 parent 709b3d2 commit dc75528

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

packages/google-cloud-dlp/noxfile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ def docs(session):
288288
shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True)
289289
session.run(
290290
"sphinx-build",
291+
"-W", # warnings as errors
291292
"-T", # show full traceback on exception
292293
"-N", # no colors
293294
"-b",

packages/google-cloud-dlp/owlbot.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,6 @@
5151

5252
python.py_samples(skip_readmes=True)
5353

54-
# ignore docs warnings (only fail on errors). See b/275029141
55-
s.replace(
56-
'noxfile.py',
57-
'"-W", # warnings as errors',
58-
''
59-
)
60-
6154
# run format session for all directories which have a noxfile
6255
for noxfile in Path(".").glob("**/noxfile.py"):
6356
s.shell.run(["nox", "-s", "format"], cwd=noxfile.parent, hide_output=False)

0 commit comments

Comments
 (0)