Skip to content

Commit 7fccd60

Browse files
fix linting issue
1 parent 6e619aa commit 7fccd60

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

codeflash/api/cfapi.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ def create_staging(
204204
generated_original_test_source: str,
205205
function_trace_id: str,
206206
coverage_message: str,
207-
replay_tests: str = "",
208-
concolic_tests: str = "",
209-
root_dir: Optional[Path] = None,
207+
replay_tests: str,
208+
concolic_tests: str,
209+
root_dir: Path,
210210
) -> Response:
211211
"""Create a staging pull request, targeting the specified branch. (usually 'staging').
212212

codeflash/optimization/function_optimizer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1244,15 +1244,16 @@ def process_review(
12441244
"coverage_message": coverage_message,
12451245
"replay_tests": replay_tests,
12461246
"concolic_tests": concolic_tests,
1247+
"root_dir": self.project_root,
12471248
}
12481249

12491250
raise_pr = not self.args.no_pr
12501251

12511252
if raise_pr and not self.args.staging_review:
12521253
data["git_remote"] = self.args.git_remote
1253-
check_create_pr(**data, root_dir=self.project_root)
1254+
check_create_pr(**data)
12541255
elif self.args.staging_review:
1255-
create_staging(**data, root_dir=self.project_root)
1256+
create_staging(**data)
12561257
else:
12571258
# Mark optimization success since no PR will be created
12581259
mark_optimization_success(

codeflash/result/create_pr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ def check_create_pr(
183183
coverage_message: str,
184184
replay_tests: str,
185185
concolic_tests: str,
186+
root_dir: Path,
186187
git_remote: Optional[str] = None,
187-
root_dir: Optional[Path] = None,
188188
) -> None:
189189
pr_number: Optional[int] = env_utils.get_pr_number()
190190
git_repo = git.Repo(search_parent_directories=True)

0 commit comments

Comments
 (0)