mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
Merge pull request #3575 from pre-commit/rm-python3-hooks-repo
Some checks are pending
Some checks are pending
rm python3_hooks_repo
This commit is contained in:
commit
46297f7cd6
4 changed files with 1 additions and 23 deletions
|
|
@ -17,7 +17,7 @@ repos:
|
||||||
rev: v3.16.0
|
rev: v3.16.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: reorder-python-imports
|
- id: reorder-python-imports
|
||||||
exclude: ^(pre_commit/resources/|testing/resources/python3_hooks_repo/)
|
exclude: ^pre_commit/resources/
|
||||||
args: [--py310-plus, --add-import, 'from __future__ import annotations']
|
args: [--py310-plus, --add-import, 'from __future__ import annotations']
|
||||||
- repo: https://github.com/asottile/add-trailing-comma
|
- repo: https://github.com/asottile/add-trailing-comma
|
||||||
rev: v4.0.0
|
rev: v4.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
- id: python3-hook
|
|
||||||
name: Python 3 Hook
|
|
||||||
entry: python3-hook
|
|
||||||
language: python
|
|
||||||
language_version: python3
|
|
||||||
files: \.py$
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
import sys
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
|
||||||
print(sys.version_info[0])
|
|
||||||
print(repr(sys.argv[1:]))
|
|
||||||
print('Hello World')
|
|
||||||
return 0
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
from setuptools import setup
|
|
||||||
|
|
||||||
setup(
|
|
||||||
name='python3_hook',
|
|
||||||
version='0.0.0',
|
|
||||||
py_modules=['py3_hook'],
|
|
||||||
entry_points={'console_scripts': ['python3-hook = py3_hook:main']},
|
|
||||||
)
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue