diff --git a/pyproject.toml b/pyproject.toml index fd1b1182e5..0d0ae48027 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,8 +6,8 @@ build-backend = "setuptools.build_meta" packages = { find = { where = ["."], exclude = ["tests", "sdk", "benchmark", "docs", "tests.*", "sdk.*", "benchmark.*", "docs.*"] } } [project.scripts] -sweep = "sweepai.cli:app" -sweepai = "sweepai.cli:app" +sweep = "sweepai.cli:main" +sweepai = "sweepai.cli:main" [project.urls] Repository = "https://github.com/sweepai/sweep" @@ -18,7 +18,7 @@ Homepage = "https://sweep.dev" [project] name = "sweepai" -version = "1.1.2" +version = "1.1.3" description = "Sweep fixes GitHub issues" authors = [ {name = "Kevin Lu", email = "kevin@sweep.dev"}, diff --git a/sweepai/cli.py b/sweepai/cli.py index 6375c758b4..50c7f49a43 100644 --- a/sweepai/cli.py +++ b/sweepai/cli.py @@ -284,6 +284,10 @@ def run(issue_url: str): ) -if __name__ == "__main__": +def main(): load_config() app() + + +if __name__ == "__main__": + main()