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

Function _ruff_dbt_cmd

misc/python/materialize/cli/fmt.py:123–129  ·  view source on GitHub ↗
(*, check: bool)

Source from the content-addressed store, hash-verified

121
122
123def _ruff_dbt_cmd(*, check: bool) -> list[str]:
124 fix = "" if check else " --fix"
125 return [
126 "bash",
127 "-c",
128 f'. misc/shlib/shlib.bash && git_files "misc/dbt-materialize/*.py" | xargs bin/pyactivate -m ruff --target-version=py38{fix}',
129 ]
130
131
132if __name__ == "__main__":

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected