diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index c71682b..32b7ea8 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -4,3 +4,9 @@ entry: tach check language: python pass_filenames: false +- id: tach-external + name: tach-external + description: Validate external package dependencies + entry: tach check-external + language: python + pass_filenames: false diff --git a/README.md b/README.md index 6eac213..ac442ad 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Distributed as a standalone repository to enable installing Tach via prebuilt wh ### Using Tach with pre-commit -To run `tach check` via pre-commit, add the following to your `.pre-commit-config.yaml`: +To run [`tach check`](https://docs.gauge.sh/usage/commands#tach-check) and [`tach check-external`](https://docs.gauge.sh/usage/commands#tach-check-external) via pre-commit, add the following to your `.pre-commit-config.yaml`: ```yaml - repo: https://github.com/gauge-sh/tach-pre-commit @@ -15,4 +15,7 @@ To run `tach check` via pre-commit, add the following to your `.pre-commit-confi rev: v0.15.2 hooks: - id: tach + - id: tach-external ``` + +Use [`args`](https://pre-commit.com/#config-args) to pass additional arguments to the `tach` commands.