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

Function _ruff_cmd

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

Source from the content-addressed store, hash-verified

112
113
114def _ruff_cmd(*, check: bool) -> list[str]:
115 fix = "" if check else " --fix"
116 return [
117 "bash",
118 "-c",
119 f'. misc/shlib/shlib.bash && git_files "*.py" | grep -v "^misc/dbt-materialize/" | xargs bin/pyactivate -m ruff{fix}',
120 ]
121
122
123def _ruff_dbt_cmd(*, check: bool) -> list[str]:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected