This repository was archived by the owner on Dec 17, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +1
-9
lines changed
Original file line number Diff line number Diff line change @@ -288,6 +288,7 @@ def docs(session):
288
288
shutil .rmtree (os .path .join ("docs" , "_build" ), ignore_errors = True )
289
289
session .run (
290
290
"sphinx-build" ,
291
+ "-W" , # warnings as errors
291
292
"-T" , # show full traceback on exception
292
293
"-N" , # no colors
293
294
"-b" ,
Original file line number Diff line number Diff line change 35
35
if clean_up_generated_samples :
36
36
shutil .rmtree ("samples/generated_samples" , ignore_errors = True )
37
37
clean_up_generated_samples = False
38
-
39
38
s .move ([library ], excludes = ["**/gapic_version.py" ])
40
39
s .remove_staging_dirs ()
41
40
52
51
53
52
python .py_samples (skip_readmes = True )
54
53
55
- # Don't treat warnings as errors
56
- # Docstrings have unexpected idnentation and block quote formatting issues
57
- s .replace (
58
- "noxfile.py" ,
59
- '''["']-W["'], # warnings as errors''' ,
60
- "" ,
61
- )
62
-
63
54
# run format session for all directories which have a noxfile
64
55
for noxfile in Path ("." ).glob ("**/noxfile.py" ):
65
56
s .shell .run (["nox" , "-s" , "format" ], cwd = noxfile .parent , hide_output = False )
You can’t perform that action at this time.
0 commit comments