(*, check: bool)
| 121 | |
| 122 | |
| 123 | def _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 | |
| 132 | if __name__ == "__main__": |