Skip to content

Commit

Permalink
chore: enable warnings as errors in docs build (#522)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
parthea and gcf-owl-bot[bot] authored Sep 14, 2023
1 parent 709b3d2 commit dc75528
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 1 addition & 0 deletions packages/google-cloud-dlp/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 0 additions & 7 deletions packages/google-cloud-dlp/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit dc75528

Please sign in to comment.