7
7
8
8
from pathlib import Path
9
9
from shutil import rmtree
10
- import subprocess # nosec B404
10
+ import subprocess # nosec B404
11
11
import time
12
12
13
13
@@ -41,8 +41,9 @@ def _prepare_docs_dir(docs_path: Path) -> None:
41
41
def _generate_xml (config_path : Path , docs_path : Path ) -> None :
42
42
print ("Generating XML files with doxygen..." , flush = True )
43
43
try :
44
- subprocess .run (["doxygen" , Path (config_path , "Doxyfile" )], text = True
45
- ).check_returncode () # nosec B603, B607
44
+ subprocess .run (
45
+ ["doxygen" , Path (config_path , "Doxyfile" )], text = True
46
+ ).check_returncode () # nosec B603, B607
46
47
print (f"All XML files generated in { docs_path } " , flush = True )
47
48
except subprocess .CalledProcessError as ex :
48
49
print ("Generating XML files failed!" )
@@ -53,8 +54,9 @@ def _generate_xml(config_path: Path, docs_path: Path) -> None:
53
54
def _generate_html (config_path : Path , docs_path : Path ) -> None :
54
55
print ("Generating HTML pages with sphinx..." , flush = True )
55
56
try :
56
- subprocess .run (["sphinx-build" , config_path , Path (docs_path , "html" )], text = True
57
- ).check_returncode () # nosec B603, B607
57
+ subprocess .run (
58
+ ["sphinx-build" , config_path , Path (docs_path , "html" )], text = True
59
+ ).check_returncode () # nosec B603, B607
58
60
print (f"All HTML files generated in { docs_path } " , flush = True )
59
61
except subprocess .CalledProcessError as ex :
60
62
print ("Generating HTML pages failed!" )
0 commit comments