Skip to content

Commit 53e8445

Browse files
committed
Actually run when invoking __main__.py
1 parent b37f332 commit 53e8445

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

flake8_github_action/__main__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,14 @@ def main(ctx: click.Context, token: str, repo: Union[str, URL, None] = None):
7070
# this package
7171
from flake8_github_action import action
7272

73+
print(ctx.args)
74+
7375
response = action(token, repo, *ctx.args)
7476

7577
if response.status_code == 200:
7678
sys.exit(0)
79+
80+
81+
if __name__ == "__main__":
82+
sys.exit(main(obj={}))
83+

0 commit comments

Comments
 (0)