Skip to content

Commit f8a5780

Browse files
committed
fix: lint
1 parent 1a0c4ad commit f8a5780

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from app import app
2+
3+
app = app
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from event_handlers import app
2+
3+
app = app

codegen-examples/examples/snapshot_event_handler/event_handlers.py

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
1-
from typing import Literal
2-
from dotenv import load_dotenv
3-
from fastapi import FastAPI, Request
4-
5-
from codegen.extensions.github.types.pull_request import PullRequestLabeledEvent
6-
7-
load_dotenv(".env")
8-
9-
import modal
10-
import logging
111
from codegen.agents.code_agent import CodeAgent
122
from codegen.extensions.events.codegen_app import CodegenApp
133
from codegen.extensions.linear.types import LinearEvent
144
from codegen.extensions.slack.types import SlackEvent
15-
165
from codegen.extensions.events.modal.base import CodebaseEventsApp, EventRouterMixin
6+
from codegen.extensions.github.types.pull_request import PullRequestLabeledEvent
177
from pr_tasks import lint_for_dev_import_violations, review_with_codegen_agent
8+
from typing import Literal
9+
from dotenv import load_dotenv
10+
from fastapi import FastAPI, Request
1811
from classy_fastapi import Routable, post
12+
import modal
13+
import logging
14+
15+
load_dotenv(".env")
16+
1917

2018
logging.basicConfig(level=logging.INFO, force=True)
2119
logger = logging.getLogger(__name__)
@@ -40,7 +38,6 @@
4038
"openai>=1.1.0",
4139
"fastapi[standard]",
4240
"slack_sdk",
43-
"fastapi_utils[all]",
4441
"classy-fastapi>=0.6.1",
4542
)
4643
)

src/codegen/git/repo_operator/repo_operator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ def create_from_repo(cls, repo_path: str, url: str, access_token: str | None = N
869869
remote_head = git_cli.remotes.origin.refs[git_cli.active_branch.name].commit
870870
# If up to date, use existing repo
871871
if local_head.hexsha == remote_head.hexsha:
872-
return cls(repo_config=RepoConfig.from_repo_path(repo_path, full_name=full_name), bot_commit=False, access_token=access_token)
872+
return cls(repo_config=RepoConfig.from_repo_path(repo_path), bot_commit=False, access_token=access_token)
873873
except Exception:
874874
# If any git operations fail, fallback to fresh clone
875875
pass

0 commit comments

Comments
 (0)