8000 ci: Treat sphinx warnings as errors (#196) · googleapis/python-monitoring@3bfeb2e · GitHub
[go: up one dir, main page]

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

Commit 3bfeb2e

Browse files
ci: Treat sphinx warnings as errors (#196)
* ci: Treat sphinx warnings as errors * 🦉 Updates from OwlBot 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 405c5e4 commit 3bfeb2e

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def docs(session):
184184
shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True)
185185
session.run(
186186
"sphinx-build",
187-
# "-W", # warnings as errors
187+
"-W", # warnings as errors
188188
"-T", # show full traceback on exception
189189
"-N", # no colors
190190
"-b",

owlbot.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,10 @@
8989
)
9090
s.move(templated_files, excludes=[".coveragerc"]) # microgenerator has a good .coveragerc file
9191

92-
# Don't treat docs (sphinx) warnings as errors.
93-
s.replace("noxfile.py", '[\"\']-W[\"\']', '# "-W"')
94-
9592
# ----------------------------------------------------------------------------
9693
# Samples templates
9794
# ----------------------------------------------------------------------------
9895
python.py_samples(skip_readmes=True)
9996

10097

101-
s.shell.run(["nox", "-s", "blacken"], hide_output=False)
98+
s.shell.run(["nox", "-s", "blacken"], hide_output=False)

0 commit comments

Comments
 (0)
0