Skip to content

Commit

Permalink
Separate check-undeclared, check-unused pre-commit hooks
Browse files Browse the repository at this point in the history
The `check-undeclared` hook runs only on files being committed.

Fixes: tweagGH-385
  • Loading branch information
msabramo committed Oct 31, 2023
1 parent 4d4bf16 commit 0ceb900
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
- id: check
- id: check-undeclared
name: FawltyDeps
description: Python dependency checker
entry: fawltydeps
description: "FawltyDeps: Check for undeclared dependencies"
entry: fawltydeps --check-undeclared
language: python
files: ".*\\.py|ipynb"
args:
- --code
pass_filenames: true
- id: check-unused
name: FawltyDeps
description: "FawltyDeps: Check for undeclared dependencies"
entry: fawltydeps --check-unused
language: python
files: ".*\\.py|ipynb"
pass_filenames: false

0 comments on commit 0ceb900

Please sign in to comment.