From 8737132639f1be0d693bb8f79b1ba1d15eb8ae6b Mon Sep 17 00:00:00 2001 From: GreatBahram Date: Sun, 4 Jul 2021 15:38:30 +0430 Subject: [PATCH 1/4] add __main__ to be able to run pycycle -> python3 -m pycycle --- pycycle/__main__.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 pycycle/__main__.py diff --git a/pycycle/__main__.py b/pycycle/__main__.py new file mode 100644 index 0000000..4cafccb --- /dev/null +++ b/pycycle/__main__.py @@ -0,0 +1,3 @@ +from .cli import cli + +cli() From 9e1cfab65dc964151f663a7c59c325a0f5c24b9d Mon Sep 17 00:00:00 2001 From: Vadim Reutskii Date: Wed, 28 Jul 2021 17:36:49 +0200 Subject: [PATCH 2/4] Add .pre-commit-hooks.yaml to support pre-commit integration --- .pre-commit-hooks.yaml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .pre-commit-hooks.yaml diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml new file mode 100644 index 0000000..cba2fcb --- /dev/null +++ b/.pre-commit-hooks.yaml @@ -0,0 +1,6 @@ + - id: pycycle + name: Pycycle - the circular dependency finder + language: python3 + entry: pycycle --here + files: *.py + types: [text] \ No newline at end of file From e53298797efab065e3f24325d7a32b13e7f41168 Mon Sep 17 00:00:00 2001 From: Vadim Reutskii Date: Wed, 28 Jul 2021 17:44:53 +0200 Subject: [PATCH 3/4] Fix pre-commit hooks filename --- .pre-commit-hooks.yaml => .pre-commit-hooks.yaml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .pre-commit-hooks.yaml => .pre-commit-hooks.yaml (100%) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml similarity index 100% rename from .pre-commit-hooks.yaml rename to .pre-commit-hooks.yaml From 2e9d63bebda9a91da3b8ce989472b6d00bb549cc Mon Sep 17 00:00:00 2001 From: Vadim Reutskii Date: Wed, 28 Jul 2021 17:55:09 +0200 Subject: [PATCH 4/4] Fix to follow pre-commit usage --- .pre-commit-hooks.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index cba2fcb..306c24d 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -1,6 +1,7 @@ - id: pycycle name: Pycycle - the circular dependency finder - language: python3 - entry: pycycle --here - files: *.py - types: [text] \ No newline at end of file + language: python + entry: pycycle + types: [python] + pass_filenames: false + args: [--here] \ No newline at end of file