mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Implement types filtering
This commit is contained in:
parent
a68c1ab0d2
commit
a58d99ac40
4 changed files with 36 additions and 0 deletions
5
testing/resources/types_repo/.pre-commit-hooks.yaml
Normal file
5
testing/resources/types_repo/.pre-commit-hooks.yaml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
- id: python-files
|
||||
name: Python files
|
||||
entry: bin/hook.sh
|
||||
language: script
|
||||
types: [python]
|
||||
3
testing/resources/types_repo/bin/hook.sh
Executable file
3
testing/resources/types_repo/bin/hook.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
echo $@
|
||||
exit 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue