Skip to content

Commit

Permalink
main -> run
Browse files Browse the repository at this point in the history
  • Loading branch information
brunovcosta committed Dec 29, 2024
1 parent 452ba9b commit 6ac5161
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions circular_imports/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def cycles_in_path(path: str, exclude: str = None) -> Set[Tuple[str, str]]:
return find_cycles(graph)


def main(path: str, exclude: str = None, output: str = None):
def run(path: str, exclude: str = None, output: str = None):
"""
Find circular imports in a Python project.
Expand Down Expand Up @@ -75,5 +75,9 @@ def main(path: str, exclude: str = None, output: str = None):
exit(1)


def main():
fire.Fire(run)


if __name__ == "__main__":
fire.Fire(main)
main()

0 comments on commit 6ac5161

Please sign in to comment.