diff options
author | David Cramer <dcramer@gmail.com> | 2016-07-22 10:54:22 -0700 |
---|---|---|
committer | David Cramer <dcramer@gmail.com> | 2016-07-22 10:54:22 -0700 |
commit | c3e170312df8d5efd64d33a55b7f66496117a86e (patch) | |
tree | e3ce3c3cb7629738158edff58579349b14a9c253 | |
parent | 02aa7bee9addd1aaf2016af181c27a6ef9f37d01 (diff) | |
download | raven-c3e170312df8d5efd64d33a55b7f66496117a86e.tar.gz |
Correct flake8 call
-rwxr-xr-x | hooks/pre-commit.flake8 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hooks/pre-commit.flake8 b/hooks/pre-commit.flake8 index d7b9071..7abe558 100755 --- a/hooks/pre-commit.flake8 +++ b/hooks/pre-commit.flake8 @@ -17,7 +17,7 @@ if 'VIRTUAL_ENV' in os.environ: def main(): - from flake8.main import DEFAULT_CONFIG + from flake8.main import USER_CONFIG from flake8.engine import get_style_guide from flake8.hooks import run @@ -37,7 +37,7 @@ def main(): lambda x: x.endswith('.py') and os.path.exists(x), files_modified) - flake8_style = get_style_guide(parse_argv=True, config_file=DEFAULT_CONFIG) + flake8_style = get_style_guide(parse_argv=True, config_file=USER_CONFIG) report = flake8_style.check_files(files_modified) return report.total_errors |