mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Add failing test for versioned repositories.
This commit is contained in:
parent
3baae2fd1e
commit
fdd6989ece
6 changed files with 44 additions and 0 deletions
5
testing/resources/python3_hooks_repo/hooks.yaml
Normal file
5
testing/resources/python3_hooks_repo/hooks.yaml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
- id: python3-hook
|
||||
name: Python 3 Hook
|
||||
entry: python3-hook
|
||||
language: python
|
||||
language_version: python3.3
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
from __future__ import print_function
|
||||
import sys
|
||||
|
||||
|
||||
def func():
|
||||
print('{0}.{1}'.format(*sys.version_info[:2]))
|
||||
print(repr(sys.argv[1:]))
|
||||
print('Hello World')
|
||||
return 0
|
||||
11
testing/resources/python3_hooks_repo/setup.py
Normal file
11
testing/resources/python3_hooks_repo/setup.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
from setuptools import find_packages
|
||||
from setuptools import setup
|
||||
|
||||
setup(
|
||||
name='python3_hook',
|
||||
version='0.0.0',
|
||||
packages=find_packages('.'),
|
||||
entry_points={
|
||||
'console_scripts': ['python3-hook = python3_hook.main:func'],
|
||||
},
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue