mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-22 08:50:10 -06:00
Implement exclude_types
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user