We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4a25b2 commit 51cf46eCopy full SHA for 51cf46e
3 files changed
…rbitrary_bytes_repo/python3_hook/main.py …ces/arbitrary_bytes_repo/python3_hook.pytesting/resources/arbitrary_bytes_repo/python3_hook/main.py renamed to testing/resources/arbitrary_bytes_repo/python3_hook.py
@@ -5,7 +5,7 @@
5
import sys
6
7
8
-def func():
+def main():
9
# Intentionally write mixed encoding to the output. This should not crash
10
# pre-commit and should write bytes to the output.
11
sys.stdout.buffer.write('☃'.encode('UTF-8') + '²'.encode('latin1') + b'\n')
testing/resources/arbitrary_bytes_repo/python3_hook/__init__.py
testing/resources/arbitrary_bytes_repo/setup.py
@@ -1,11 +1,8 @@
1
-from setuptools import find_packages
2
from setuptools import setup
3
4
setup(
name='python3_hook',
version='0.0.0',
- packages=find_packages('.'),
- entry_points={
- 'console_scripts': ['python3-hook = python3_hook.main:func'],
- },
+ py_modules=['python3_hook'],
+ entry_points={'console_scripts': ['python3-hook=python3_hook:main']},
)
0 commit comments