Skip to content

Commit

Permalink
Merge pull request #2 from airwoodix/add-check-external-hook
Browse files Browse the repository at this point in the history
Add hook to run check-external
  • Loading branch information
emdoyle authored Nov 25, 2024
2 parents 7bd6c04 + f88f47a commit 9551b9a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ 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
# Tach version.
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.

0 comments on commit 9551b9a

Please sign in to comment.