Skip to content

Commit 6a74014

Browse files
committed
uvx ruff format .
1 parent 6c9bf65 commit 6a74014

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

codeflash/cli_cmds/cmd_init.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ def init_codeflash() -> None:
6868
did_add_new_key = prompt_api_key()
6969

7070
if should_modify_pyproject_toml():
71-
7271
setup_info: SetupInfo = collect_setup_info()
7372

7473
configure_pyproject_toml(setup_info)
@@ -81,7 +80,6 @@ def init_codeflash() -> None:
8180
if "setup_info" in locals():
8281
module_string = f" you selected ({setup_info.module_root})"
8382

84-
8583
click.echo(
8684
f"{LF}"
8785
f"⚡️ Codeflash is now set up! You can now run:{LF}"
@@ -123,11 +121,13 @@ def ask_run_end_to_end_test(args: Namespace) -> None:
123121
bubble_sort_path, bubble_sort_test_path = create_bubble_sort_file_and_test(args)
124122
run_end_to_end_test(args, bubble_sort_path, bubble_sort_test_path)
125123

124+
126125
def should_modify_pyproject_toml() -> bool:
127126
"""Check if the current directory contains a valid pyproject.toml file with codeflash config
128127
If it does, ask the user if they want to re-configure it.
129128
"""
130129
from rich.prompt import Confirm
130+
131131
pyproject_toml_path = Path.cwd() / "pyproject.toml"
132132
if not pyproject_toml_path.exists():
133133
return True
@@ -142,7 +142,9 @@ def should_modify_pyproject_toml() -> bool:
142142
return True
143143

144144
create_toml = Confirm.ask(
145-
"✅ A valid Codeflash config already exists in this project. Do you want to re-configure it?", default=False, show_default=True
145+
"✅ A valid Codeflash config already exists in this project. Do you want to re-configure it?",
146+
default=False,
147+
show_default=True,
146148
)
147149
return create_toml
148150

codeflash/code_utils/config_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def parse_config_file(
8787
"In pyproject.toml, Codeflash only supports the 'test-framework' as pytest and unittest."
8888
)
8989
if len(config["formatter-cmds"]) > 0:
90-
#see if this is happening during GitHub actions setup
90+
# see if this is happening during GitHub actions setup
9191
if not override_formatter_check:
9292
assert config["formatter-cmds"][0] != "your-formatter $file", (
9393
"The formatter command is not set correctly in pyproject.toml. Please set the "

0 commit comments

Comments
 (0)