From dc75528f52dbf66d23508ce384175accbeca94d9 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Thu, 14 Sep 2023 10:25:39 -0400 Subject: [PATCH] chore: enable warnings as errors in docs build (#522) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- packages/google-cloud-dlp/noxfile.py | 1 + packages/google-cloud-dlp/owlbot.py | 7 ------- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/google-cloud-dlp/noxfile.py b/packages/google-cloud-dlp/noxfile.py index 3d7c4c92e5f7..400073310a2c 100644 --- a/packages/google-cloud-dlp/noxfile.py +++ b/packages/google-cloud-dlp/noxfile.py @@ -288,6 +288,7 @@ def docs(session): shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True) session.run( "sphinx-build", + "-W", # warnings as errors "-T", # show full traceback on exception "-N", # no colors "-b", diff --git a/packages/google-cloud-dlp/owlbot.py b/packages/google-cloud-dlp/owlbot.py index 88669f7fba86..ce738f01d012 100644 --- a/packages/google-cloud-dlp/owlbot.py +++ b/packages/google-cloud-dlp/owlbot.py @@ -51,13 +51,6 @@ python.py_samples(skip_readmes=True) -# ignore docs warnings (only fail on errors). See b/275029141 -s.replace( - 'noxfile.py', - '"-W", # warnings as errors', - '' -) - # run format session for all directories which have a noxfile for noxfile in Path(".").glob("**/noxfile.py"): s.shell.run(["nox", "-s", "format"], cwd=noxfile.parent, hide_output=False)