Update pre-commit hooks

This commit is contained in:
Anthony Sottile 2015-01-04 16:05:20 -08:00
parent b03733bc86
commit b08f834d65
10 changed files with 19 additions and 5 deletions

View file

@ -1,18 +1,24 @@
- repo: git@github.com:pre-commit/pre-commit-hooks - repo: git@github.com:pre-commit/pre-commit-hooks
sha: e0a6e66528c8335599408cbefe7ebf9e7e15ccb3 sha: b03733bc86d9e8b2564a5798ade40d64baae3055
hooks: hooks:
- id: trailing-whitespace - id: trailing-whitespace
- id: end-of-file-fixer - id: end-of-file-fixer
- id: autopep8-wrapper - id: autopep8-wrapper
args: ['-i', '--ignore=E265,E309,E501'] args: ['-i', '--ignore=E265,E309,E501']
- id: check-docstring-first
- id: check-json - id: check-json
- id: check-added-large-files - id: check-added-large-files
- id: check-yaml - id: check-yaml
- id: debug-statements - id: debug-statements
- id: name-tests-test - id: name-tests-test
- id: requirements-txt-fixer
- id: flake8 - id: flake8
- repo: git@github.com:pre-commit/pre-commit - repo: git@github.com:pre-commit/pre-commit
sha: 3cac9489b3886f72b00f83d5128c2b22ea2fbcca sha: 645838cb514583249478e347aa80a0af743edace
hooks: hooks:
- id: validate_config - id: validate_config
- id: validate_manifest - id: validate_manifest
- repo: git@github.com:asottile/reorder_python_imports
sha: ea9fa14a757bb210d849de5af8f8ba2c9744027a
hooks:
- id: reorder-python-imports

View file

@ -2,10 +2,11 @@ from __future__ import absolute_import
from __future__ import print_function from __future__ import print_function
from __future__ import unicode_literals from __future__ import unicode_literals
import autopep8
import io import io
import sys import sys
import autopep8
def main(argv=None): def main(argv=None):
argv = argv if argv is not None else sys.argv[1:] argv = argv if argv is not None else sys.argv[1:]

View file

@ -2,6 +2,7 @@ from __future__ import print_function
import argparse import argparse
import sys import sys
import simplejson import simplejson

View file

@ -2,6 +2,7 @@ from __future__ import print_function
import argparse import argparse
import sys import sys
import yaml import yaml

View file

@ -3,6 +3,7 @@ from __future__ import print_function
import argparse import argparse
import fileinput import fileinput
import sys import sys
from plumbum import local from plumbum import local

View file

@ -3,6 +3,6 @@
coverage coverage
flake8 flake8
mock mock
pre-commit
pylint<1.4 pylint<1.4
pytest pytest
pre-commit

View file

@ -3,6 +3,7 @@ from __future__ import unicode_literals
import io import io
import os.path import os.path
import pytest import pytest
from pre_commit_hooks.autopep8_wrapper import main from pre_commit_hooks.autopep8_wrapper import main

View file

@ -1,8 +1,9 @@
import ast import ast
import pytest import pytest
from pre_commit_hooks.debug_statement_hook import DebugStatement
from pre_commit_hooks.debug_statement_hook import debug_statement_hook from pre_commit_hooks.debug_statement_hook import debug_statement_hook
from pre_commit_hooks.debug_statement_hook import DebugStatement
from pre_commit_hooks.debug_statement_hook import ImportStatementParser from pre_commit_hooks.debug_statement_hook import ImportStatementParser
from testing.util import get_resource_path from testing.util import get_resource_path

View file

@ -1,5 +1,6 @@
import io import io
import os.path import os.path
import pytest import pytest
from pre_commit_hooks.end_of_file_fixer import end_of_file_fixer from pre_commit_hooks.end_of_file_fixer import end_of_file_fixer

View file

@ -1,4 +1,5 @@
import os.path import os.path
import pytest import pytest
from pre_commit_hooks.requirements_txt_fixer import fix_requirements_txt from pre_commit_hooks.requirements_txt_fixer import fix_requirements_txt