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

chore: enable warnings as errors in docs build #522

Merged
merged 2 commits into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)