Skip to content

Commit d9e21a1

Browse files
committed
merge --verbose into --debug, remove time.sleep()
1 parent b070d91 commit d9e21a1

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

builder/build_cli.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ def build_docs(
2929
debug: bool,
3030
offline: bool,
3131
spec_lock_consistency_check: bool,
32-
verbose: bool
3332
) -> Path:
3433
"""
3534
Builds the Sphinx documentation with the specified options.
@@ -71,8 +70,8 @@ def build_docs(
7170
conf_opt_values.append("enable_spec_lock_consistency=0")
7271
if offline:
7372
conf_opt_values.append("offline=1")
74-
if verbose:
75-
conf_opt_values.append("verbose=1")
73+
if debug:
74+
conf_opt_values.append("debug=1")
7675

7776
# Only add the --define argument if there are options to define
7877
if conf_opt_values:
@@ -193,6 +192,6 @@ def main(root):
193192
update_spec_lockfile(SPEC_CHECKSUM_URL, root / "src" / SPEC_LOCKFILE)
194193

195194
rendered = build_docs(
196-
root, "xml" if args.xml else "html", args.clear, args.serve, args.debug, args.offline, not args.ignore_spec_lock_diff, args.verbose
195+
root, "xml" if args.xml else "html", args.clear, args.serve, args.debug, args.offline, not args.ignore_spec_lock_diff,
197196
)
198197

exts/coding_guidelines/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def on_build_finished(app, exception):
3636
if exception is not None:
3737
print(" - Build failed")
3838
else:
39-
if not app.config.verbose:
39+
if not app.config.debug:
4040
print(f" + Build complete -> {outdir}")
4141

4242
def setup(app):
@@ -53,7 +53,7 @@ def setup(app):
5353
rebuild="env", # Rebuild the environment when this changes
5454
types=[str],
5555
)
56-
app.add_config_value(name='verbose',
56+
app.add_config_value(name='debug',
5757
default=False,
5858
rebuild='env'
5959
)
@@ -69,7 +69,7 @@ def setup(app):
6969
rebuild='env',
7070
types=[list],
7171
)
72-
if app.config.verbose:
72+
if app.config.debug:
7373
logger.setLevel(logging.INFO)
7474
common.disable_tqdm = True
7575

exts/coding_guidelines/fls_checks.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ def check_fls_ids_correct(app, env, fls_ids):
137137
for need_id, need in pbar:
138138
if need.get('type') == 'guideline':
139139
pbar.set_postfix(fls_id=need_id)
140-
time.sleep(0.1)
141140
fls_value = need.get("fls")
142141

143142
# Skip needs we already validated format for
@@ -325,7 +324,6 @@ def check_fls_lock_consistency(app, env, fls_raw_data):
325324
for need_id, need in pbar:
326325
if need.get('type') == 'guideline':
327326
pbar.set_postfix(fls_id=need_id)
328-
time.sleep(0.1) # this is temporary for testing
329327
fls_value = need.get("fls")
330328
if fls_value:
331329
if fls_value not in fls_to_guidelines:

0 commit comments

Comments
 (0)