diff --git a/src/ini2toml/cli.py b/src/ini2toml/cli.py index e48987a..985d661 100644 --- a/src/ini2toml/cli.py +++ b/src/ini2toml/cli.py @@ -95,7 +95,7 @@ def critical_logging(): def apply_auto_formatting(text: str) -> str: try: - return format_pyproject(Config(text)) + return format_pyproject(Config(Path("pyproject.toml"), text)) except Exception as ex: # pragma: no cover _logger.debug(f"pyproject-fmt failed: {ex}", exc_info=True) _logger.warning("Auto-formatting failed, falling back to original text")