MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / run

Method run

misc/python/materialize/cli/lint.py:53–72  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

51 self.offline = offline
52
53 def run(self) -> int:
54 failed_checks = self.run_and_validate_if_no_previous_failures(
55 CHECK_BEFORE_PATH, previous_failures=[]
56 )
57 failed_checks = self.run_and_validate_if_no_previous_failures(
58 MAIN_CHECKS_PATH, previous_failures=failed_checks
59 )
60 failed_checks = self.run_and_validate_if_no_previous_failures(
61 CHECK_AFTER_PATH, previous_failures=failed_checks
62 )
63
64 success = len(failed_checks) == 0
65
66 print(
67 _prefix("+++") + f"{OK} All checks successful"
68 if success
69 else f"{FAIL} Checks failed: {failed_checks}"
70 )
71
72 return 0 if success else 1
73
74 def is_ignore_file(self, path: Path) -> bool:
75 return os.path.isdir(path)

Callers 13

mainFunction · 0.95
create_docker_containerFunction · 0.45
copy_binary_from_imageFunction · 0.45
mainFunction · 0.45
runFunction · 0.45
get_reportFunction · 0.45
mainFunction · 0.45
runFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 2

_prefixFunction · 0.90

Tested by

no test coverage detected