summaryrefslogtreecommitdiffstats
path: root/testing/resources/python3_hooks_repo/py3_hook.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2020-03-24 21:59:15 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2020-03-24 21:59:15 +0000
commit63fad53303381388673073de580a32088a4ef0fe (patch)
treea2c5c329ee5e79a220fac7e079283235fecc0cda /testing/resources/python3_hooks_repo/py3_hook.py
parentInitial commit. (diff)
downloadpre-commit-39afacd55039f430bde0818a76282e3979e47595.tar.xz
pre-commit-39afacd55039f430bde0818a76282e3979e47595.zip
Adding upstream version 2.2.0.upstream/2.2.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/resources/python3_hooks_repo/py3_hook.py')
-rw-r--r--testing/resources/python3_hooks_repo/py3_hook.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/testing/resources/python3_hooks_repo/py3_hook.py b/testing/resources/python3_hooks_repo/py3_hook.py
new file mode 100644
index 0000000..8c9cda4
--- /dev/null
+++ b/testing/resources/python3_hooks_repo/py3_hook.py
@@ -0,0 +1,8 @@
+import sys
+
+
+def main():
+ print(sys.version_info[0])
+ print(repr(sys.argv[1:]))
+ print('Hello World')
+ return 0