Skip to content

Commit f4c5d17

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

File tree

4 files changed

+23
-2
lines changed

4 files changed

+23
-2
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: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<<<<<<< Updated upstream
12
from typing import Literal
23
from dotenv import load_dotenv
34
from fastapi import FastAPI, Request
@@ -8,14 +9,25 @@
89

910
import modal
1011
import logging
12+
=======
13+
>>>>>>> Stashed changes
1114
from codegen.agents.code_agent import CodeAgent
1215
from codegen.extensions.events.codegen_app import CodegenApp
1316
from codegen.extensions.linear.types import LinearEvent
1417
from codegen.extensions.slack.types import SlackEvent
15-
1618
from codegen.extensions.events.modal.base import CodebaseEventsApp, EventRouterMixin
19+
from codegen.extensions.github.types.pull_request import PullRequestLabeledEvent
20+
1721
from pr_tasks import lint_for_dev_import_violations, review_with_codegen_agent
22+
from typing import Literal
23+
from dotenv import load_dotenv
24+
from fastapi import FastAPI, Request
1825
from classy_fastapi import Routable, post
26+
import modal
27+
import logging
28+
29+
load_dotenv(".env")
30+
1931

2032
logging.basicConfig(level=logging.INFO, force=True)
2133
logger = logging.getLogger(__name__)
@@ -40,7 +52,10 @@
4052
"openai>=1.1.0",
4153
"fastapi[standard]",
4254
"slack_sdk",
55+
<<<<<<< Updated upstream
4356
"fastapi_utils[all]",
57+
=======
58+
>>>>>>> Stashed changes
4459
"classy-fastapi>=0.6.1",
4560
)
4661
)

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)