---
# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: "3"

vars:
  host: $HOSTNAME

tasks:

  init:
    desc: Initialize pre-commit hooks
    cmds:
      - pre-commit install --install-hooks

  update:
    desc: Update pre-commit dependencies
    cmds:
      - pre-commit autoupdate

  run:
    desc: Run pre-commit
    cmds:
      - pre-commit run --all-files
