We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 484859d + 895c447 commit 474d385Copy full SHA for 474d385
codeflash/cli_cmds/cmd_init.py
@@ -587,6 +587,11 @@ def configure_pyproject_toml(setup_info: SetupInfo) -> None:
587
)
588
elif formatter == "don't use a formatter":
589
formatter_cmds.append("disabled")
590
+ if formatter in ["black", "ruff"]:
591
+ try:
592
+ result = subprocess.run([formatter], capture_output=True, check=False)
593
+ except FileNotFoundError as e:
594
+ click.echo(f"⚠️ Formatter not found: {formatter}, please ensure it is installed")
595
codeflash_section["formatter-cmds"] = formatter_cmds
596
# Add the 'codeflash' section, ensuring 'tool' section exists
597
tool_section = pyproject_data.get("tool", tomlkit.table())
0 commit comments