add mirrors-yapf (#3096)

pull/3104/head
changdazhou 2024-02-27 15:12:59 +08:00 committed by GitHub
parent 4092cabf77
commit b250aec615
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,7 @@
- id: yapf
name: yapf
entry: yapf
language: python
files: \.py$
args: [-i]

View File

@ -0,0 +1 @@
0.13.2

View File

@ -0,0 +1,18 @@
yapf mirror
=============
Mirror of yapf package for pre-commit.
For pre-commit: see https://github.com/pre-commit/pre-commit
For yapf: see https://github.com/google/yapf
### Using yapf with pre-commit
Add this to your `.pre-commit-config.yaml`:
- repo: git://github.com/pre-commit/mirrors-yapf
sha: '' # Use the sha / tag you want to point at
hooks:
- id: yapf

View File

@ -0,0 +1,7 @@
- id: yapf
name: yapf
entry: yapf
language: python
files: \.py$
args: [-i]

View File

@ -0,0 +1,4 @@
Metadata-Version: 2.1
Name: pre-commit-dummy-package
Version: 0.0.0
Requires-Dist: yapf==0.13.2

View File

@ -0,0 +1,7 @@
README.md
setup.py
pre_commit_dummy_package.egg-info/PKG-INFO
pre_commit_dummy_package.egg-info/SOURCES.txt
pre_commit_dummy_package.egg-info/dependency_links.txt
pre_commit_dummy_package.egg-info/requires.txt
pre_commit_dummy_package.egg-info/top_level.txt

View File

@ -0,0 +1 @@
yapf==0.13.2

View File

@ -0,0 +1,6 @@
from setuptools import setup
setup(
name='pre_commit_dummy_package',
version='0.0.0',
install_requires=['yapf==0.13.2'], )