Skip to content

Commit fe29f44

Browse files
committed
change suppress-tqdm to
disable-tqdm
1 parent ffe7240 commit fe29f44

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contentctl/objects/config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ class test_common(build):
559559
"This flag is useful for building your app and generating a test plan to run on different infrastructure. "
560560
"This flag does not actually perform the test. Instead, it builds validates all content and builds the app(s). "
561561
"It MUST be used with mode.changes and must run in the context of a git repo.")
562-
suppress_tqdm:bool = Field(default=False, exclude=True, description="The tdqm library (https://github.com/tqdm/tqdm) is used to facilitate a richer,"
562+
disable_tqdm:bool = Field(default=False, exclude=True, description="The tdqm library (https://github.com/tqdm/tqdm) is used to facilitate a richer,"
563563
" interactive command line workflow that can display progress bars and status information frequently. "
564564
"Unfortunately it is incompatible with, or may cause poorly formatted logs, in many CI/CD systems or other unattended environments. "
565565
"If you are running contentctl in CI/CD, then please set this argument to True. Note that if you are running in a CI/CD context, "
@@ -574,7 +574,7 @@ def dumpCICDPlanAndQuit(self, githash: str, detections:List[Detection]):
574574
self.mode = Selected(files=sorted([detection.file_path for detection in detections], key=lambda path: str(path)))
575575
self.post_test_behavior = PostTestBehavior.never_pause.value
576576
#required so that CI/CD does not get too much output or hang
577-
self.suppress_tqdm = True
577+
self.disable_tqdm = True
578578

579579
# We will still parse the app, but no need to do enrichments or
580580
# output to dist. We have already built it!
@@ -633,7 +633,7 @@ def ensureCommonInformationModel(self)->Self:
633633

634634
@model_validator(mode='after')
635635
def suppressTQDM(self)->Self:
636-
if self.suppress_tqdm:
636+
if self.disable_tqdm:
637637
tqdm.tqdm.__init__ = partialmethod(tqdm.tqdm.__init__, disable=True)
638638
if self.post_test_behavior != PostTestBehavior.never_pause.value:
639639
raise ValueError(f"You have disabled tqdm, presumably because you are "

0 commit comments

Comments
 (0)