Skip to content
This repository has been archived by the owner on Dec 10, 2023. It is now read-only.

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] committed Sep 14, 2023
1 parent 5f7e8e6 commit 966ef58
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 1 addition & 0 deletions 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 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 966ef58

Please sign in to comment.