This commit is contained in:
Tom Chang 2017-06-13 18:21:24 +08:00
parent 8b2066fb27
commit e4dbcd549b
3 changed files with 14 additions and 29 deletions

View file

@ -1,28 +1,4 @@
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/tom-aa/pre-commit-hooks
sha: v0.8.0 sha: demo
hooks: hooks:
- id: trailing-whitespace - id: pep8-check
- 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

View file

@ -1,8 +1,17 @@
from setuptools import find_packages fom setuptools import find_packages
from setuptools import setup from setuptools import setup
i
#123123
setup( setup(
name='pre_commit_hooks', name='pre_commit_hooks',
description='Some out-of-the-box hooks for pre-commit.', description='Some out-of-the-box hooks for pre-commit.',
url='https://github.com/pre-commit/pre-commit-hooks', url='https://github.com/pre-commit/pre-commit-hooks',