| commit | b08f834d65fed15e25cbe3073df7ff457459801a | [log] [tgz] |
|---|---|---|
| author | Anthony Sottile <asottile@umich.edu> | Sun Jan 04 16:05:20 2015 -0800 |
| committer | Anthony Sottile <asottile@umich.edu> | Sun Jan 04 16:05:54 2015 -0800 |
| tree | 178084f9442a75c22550a348963be7383fe2a8f5 | |
| parent | b03733bc86d9e8b2564a5798ade40d64baae3055 [diff] |
Update pre-commit hooks
diff --git a/pre_commit_hooks/autopep8_wrapper.py b/pre_commit_hooks/autopep8_wrapper.py index c2f5ee7..a79a120 100644 --- a/pre_commit_hooks/autopep8_wrapper.py +++ b/pre_commit_hooks/autopep8_wrapper.py
@@ -2,10 +2,11 @@ from __future__ import print_function from __future__ import unicode_literals -import autopep8 import io import sys +import autopep8 + def main(argv=None): argv = argv if argv is not None else sys.argv[1:]
diff --git a/pre_commit_hooks/check_json.py b/pre_commit_hooks/check_json.py index 1f2cbf9..8328cc7 100644 --- a/pre_commit_hooks/check_json.py +++ b/pre_commit_hooks/check_json.py
@@ -2,6 +2,7 @@ import argparse import sys + import simplejson
diff --git a/pre_commit_hooks/check_yaml.py b/pre_commit_hooks/check_yaml.py index 406800b..0085807 100644 --- a/pre_commit_hooks/check_yaml.py +++ b/pre_commit_hooks/check_yaml.py
@@ -2,6 +2,7 @@ import argparse import sys + import yaml
diff --git a/pre_commit_hooks/trailing_whitespace_fixer.py b/pre_commit_hooks/trailing_whitespace_fixer.py index 5350fe2..7ac3d73 100644 --- a/pre_commit_hooks/trailing_whitespace_fixer.py +++ b/pre_commit_hooks/trailing_whitespace_fixer.py
@@ -3,6 +3,7 @@ import argparse import fileinput import sys + from plumbum import local