From e0f28e3c375fbcc45c1f6feff191f4de7511a1ac Mon Sep 17 00:00:00 2001 From: Vikalp Jain Date: Mon, 30 May 2016 21:39:41 +0530 Subject: [PATCH 1/2] Use the passed args in the sorting --- pre_commit_hook/sort.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pre_commit_hook/sort.py b/pre_commit_hook/sort.py index dd972a4..110a856 100644 --- a/pre_commit_hook/sort.py +++ b/pre_commit_hook/sort.py @@ -1,7 +1,7 @@ from __future__ import print_function import argparse -import os +import os, sys from isort import isort @@ -34,4 +34,4 @@ def main(argv=None): return return_value if __name__ == '__main__': - exit(main()) + exit(main(sys.argv[1:])) From 0a538f86533d96bd4aa6adb1c43ad5917993ac8f Mon Sep 17 00:00:00 2001 From: Ryan Floyd Date: Wed, 17 May 2017 17:19:43 -0700 Subject: [PATCH 2/2] updating repo to support pre-commit 0.14.0 --- .gitignore | 1 + hooks.yaml => .pre-commit-hooks.yaml | 0 2 files changed, 1 insertion(+) rename hooks.yaml => .pre-commit-hooks.yaml (100%) diff --git a/.gitignore b/.gitignore index 3ba8bb9..3805118 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .coverage *.egg-info +.idea diff --git a/hooks.yaml b/.pre-commit-hooks.yaml similarity index 100% rename from hooks.yaml rename to .pre-commit-hooks.yaml