From e4dbcd549bc3e12cec1a11220b3ab30194cd59db Mon Sep 17 00:00:00 2001 From: Tom Chang Date: Tue, 13 Jun 2017 18:21:24 +0800 Subject: [PATCH] fix --- .pre-commit-config.yaml | 30 +++--------------------------- hooks.yaml | 2 +- setup.py | 11 ++++++++++- 3 files changed, 14 insertions(+), 29 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index be99f71..f7b674c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,28 +1,4 @@ -- repo: https://github.com/pre-commit/pre-commit-hooks - sha: v0.8.0 +- repo: https://github.com/tom-aa/pre-commit-hooks + sha: demo hooks: - - id: trailing-whitespace - - id: end-of-file-fixer - - id: autopep8-wrapper - - id: check-docstring-first - - id: check-json - - id: check-added-large-files - - id: check-yaml - - id: debug-statements - - id: name-tests-test - - id: requirements-txt-fixer - - id: flake8 -- repo: https://github.com/pre-commit/pre-commit - sha: v0.12.2 - hooks: - - id: validate_config - - id: validate_manifest -- repo: https://github.com/asottile/reorder_python_imports - sha: v0.3.1 - hooks: - - id: reorder-python-imports - language_version: python2.7 -- repo: https://github.com/asottile/pyupgrade - sha: v1.0.0 - hooks: - - id: pyupgrade + - id: pep8-check diff --git a/hooks.yaml b/hooks.yaml index ae77e9c..e9205cd 100644 --- a/hooks.yaml +++ b/hooks.yaml @@ -8,7 +8,7 @@ - id: autopep8-wrapper name: autopep8 wrapper description: "Runs autopep8 over python source. If you configure additional arguments you'll want to at least include -i." - entry: autopep8-wrapper + entry: autopep8-wrapper language: python files: \.py$ args: [-i] diff --git a/setup.py b/setup.py index 19db726..15a139f 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,17 @@ -from setuptools import find_packages +fom setuptools import find_packages from setuptools import setup +i + + + +#123123 setup( + + + + name='pre_commit_hooks', description='Some out-of-the-box hooks for pre-commit.', url='https://github.com/pre-commit/pre-commit-hooks',