(*, check: bool)
| 112 | |
| 113 | |
| 114 | def _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 | |
| 123 | def _ruff_dbt_cmd(*, check: bool) -> list[str]: |