Skip to content

Commit fb906e4

Browse files
committed
chore(pre-commit): add ruff hook for interviews/vault-cli/
Mirrors the ruff check that the StaffML Validate (Vault) workflow already runs in CI, so the same 20-violation class of failure caught on dev yesterday is stopped at commit time on a developer's machine. Scoped strictly to interviews/vault-cli/*.py and uses the ruff config in vault-cli's own pyproject.toml. Pinned to ruff-pre-commit v0.15.12.
1 parent b602aa9 commit fb906e4

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,18 @@ repos:
708708
files: ^interviews/vault/schema/(enums\.py|question_schema\.yaml)$
709709
pass_filenames: false
710710

711+
# Mirror the `ruff check` step in `🎯 StaffML · ✅ Validate (Vault)`
712+
# (.github/workflows/staffml-validate-vault.yml) so violations are caught
713+
# locally before they land on dev. Configuration lives in
714+
# interviews/vault-cli/pyproject.toml ([tool.ruff]); pre-commit picks it
715+
# up automatically because it runs from that directory.
716+
- repo: https://github.com/astral-sh/ruff-pre-commit
717+
rev: v0.15.12
718+
hooks:
719+
- id: ruff
720+
name: "Vault: Lint vault-cli (ruff)"
721+
files: ^interviews/vault-cli/.*\.py$
722+
711723
# ===========================================================================
712724
# DISABLED/OPTIONAL HOOKS
713725
# ===========================================================================

0 commit comments

Comments
 (0)