Skip to content

Commit

Permalink
fix: skip non visual qa if no file has been standardised (#97)
Browse files Browse the repository at this point in the history
Co-authored-by: Alice Fage <afage@linz.govt.nz>
  • Loading branch information
paulfouquet and amfage authored Aug 24, 2022
1 parent 099df34 commit 25a85c1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/standardise_validate.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from linz_logger import get_log

from scripts.cli.cli_helper import is_argo, parse_source
from scripts.non_visual_qa import non_visual_qa
from scripts.standardising import start_standardising
Expand All @@ -9,7 +11,12 @@ def main() -> None:
if is_argo():
concurrency = 4
standardised_files = start_standardising(source, concurrency)
non_visual_qa(standardised_files)
if standardised_files:
non_visual_qa(standardised_files)
else:
get_log().info(
"Non Visual QA skipped because no file has been standardised", action="standardise_validate", reason="skip"
)


if __name__ == "__main__":
Expand Down

0 comments on commit 25a85c1

Please sign in to comment.