mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-18 08:34:41 +04:00
Add Runner interface.
This commit is contained in:
parent
ae1d1681b2
commit
88686d298f
25 changed files with 282 additions and 148 deletions
0
testing/resources/python_hooks_repo/foo/__init__.py
Normal file
0
testing/resources/python_hooks_repo/foo/__init__.py
Normal file
6
testing/resources/python_hooks_repo/foo/main.py
Normal file
6
testing/resources/python_hooks_repo/foo/main.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import sys
|
||||
|
||||
def func():
|
||||
print repr(sys.argv[1:])
|
||||
print 'Hello World'
|
||||
return 0
|
||||
4
testing/resources/python_hooks_repo/manifest.yaml
Normal file
4
testing/resources/python_hooks_repo/manifest.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
- id: foo
|
||||
name: Foo
|
||||
entry: foo
|
||||
language: python
|
||||
11
testing/resources/python_hooks_repo/setup.py
Normal file
11
testing/resources/python_hooks_repo/setup.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
from setuptools import find_packages
|
||||
from setuptools import setup
|
||||
|
||||
setup(
|
||||
name='Foo',
|
||||
version='0.0.0',
|
||||
packages=find_packages('.'),
|
||||
entry_points={
|
||||
'console_scripts': ['foo = foo.main:func'],
|
||||
},
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue