From 15ce99ba02863ca8df16ca727714e6c7de11f9a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez=20Mondrag=C3=B3n?= <16805946+edgarrmondragon@users.noreply.github.com> Date: Fri, 1 Dec 2023 18:22:51 -0600 Subject: [PATCH] feat: Add `poetry-dynamic-versioning` build backend (#158) --- src/pyproject_fmt/formatter/tools.py | 1 + tests/formatter/test_tools.py | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/pyproject_fmt/formatter/tools.py b/src/pyproject_fmt/formatter/tools.py index 4f2eba7..a60a526 100644 --- a/src/pyproject_fmt/formatter/tools.py +++ b/src/pyproject_fmt/formatter/tools.py @@ -29,6 +29,7 @@ def fmt_tools(parsed: TOMLDocument, conf: Config) -> None: # noqa: ARG001 order = [ # Build backends "poetry", + "poetry-dynamic-versioning", "pdm", "setuptools", "distutils", diff --git a/tests/formatter/test_tools.py b/tests/formatter/test_tools.py index c784cc0..aa4d789 100644 --- a/tests/formatter/test_tools.py +++ b/tests/formatter/test_tools.py @@ -44,6 +44,8 @@ def test_tools_ordering(fmt: Fmt) -> None: a = 0 [tool.cibuildwheel] a = 0 + [tool.poetry-dynamic-versioning] + a = 0 [tool.pylint] [tool.repo-review] a = 0 @@ -78,6 +80,9 @@ def test_tools_ordering(fmt: Fmt) -> None: name = "a" [tool.poetry.scripts] version = "1" + [tool.poetry-dynamic-versioning] + a = 0 + [tool.pdm] [tool.setuptools]