From 24bf123e84a68d2dab94a89e507dc5f56d46e2c0 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Fri, 24 May 2024 09:46:38 -0400 Subject: [PATCH] fix: new column width (#224) Signed-off-by: Henry Schreiner --- docs/index.rst | 2 +- pyproject.toml | 2 +- src/pyproject_fmt/cli.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index db40616..1a7197b 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -50,7 +50,7 @@ The ``tool.pyproject-fmt`` table is used when present in the ``pyproject.toml`` [tool.pyproject-fmt] # after how many column width split arrays/dicts into multiple lines, 1 will force always - column_width = 1 + column_width = 120 # how many spaces use for indentation indent = 2 diff --git a/pyproject.toml b/pyproject.toml index 92dd2b4..361c8cf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,7 @@ dynamic = [ "version", ] dependencies = [ - "pyproject-fmt-rust==1.1.3", + "pyproject-fmt-rust==1.1.4", "tomli>=2.0.1; python_version<'3.11'", ] optional-dependencies.docs = [ diff --git a/src/pyproject_fmt/cli.py b/src/pyproject_fmt/cli.py index 687621f..e6dc3f7 100644 --- a/src/pyproject_fmt/cli.py +++ b/src/pyproject_fmt/cli.py @@ -120,7 +120,7 @@ def _build_cli() -> ArgumentParser: format_group.add_argument( "--column-width", type=int, - default=1, + default=120, help="max column width in the TOML file", metavar="count", )