mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Implement exclude_types
This commit is contained in:
parent
f956f421be
commit
05a108efe1
6 changed files with 46 additions and 13 deletions
|
|
@ -0,0 +1,6 @@
|
|||
- id: python-files
|
||||
name: Python files
|
||||
entry: bin/hook.sh
|
||||
language: script
|
||||
types: [python]
|
||||
exclude_types: [python3]
|
||||
3
testing/resources/exclude_types_repo/bin/hook.sh
Executable file
3
testing/resources/exclude_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