mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-05-06 15:29:14 -05:00
Add failing test for versioned repositories.
This commit is contained in:
@@ -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
|
||||
@@ -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'],
|
||||
},
|
||||
)
|
||||
Reference in New Issue
Block a user