From 1c6b0eb8d7cecd07c46714d91c23e0e2bf1305f8 Mon Sep 17 00:00:00 2001 From: Oliver Sanders Date: Fri, 10 Apr 2026 10:38:36 +0100 Subject: [PATCH 1/2] setup: sync pyproject config from cylc-flow --- pyproject.toml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index ae2058b..4e4b043 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -96,3 +96,34 @@ testpaths = [ [tool.bandit] exclude_dirs = ["metomi/isodatetime/tests"] + + +# Not mandated to use these tools, but if you do: + +[tool.ruff] +line-length = 79 +target-version = "py312" + +[tool.ruff.format] +quote-style = "preserve" + + +[tool.black] +line-length = 79 +target-version = ['py312'] +skip-string-normalization = true + + +[tool.isort] +profile = "black" +line_length = 79 +force_grid_wrap = 2 +lines_after_imports = 2 +combine_as_imports = true +force_sort_within_sections = true + +[tool.ruff.lint.isort] +# force-grid-wrap = 2 # astral-sh/ruff#2601 +lines-after-imports = 2 +combine-as-imports = true +force-sort-within-sections = true From 778547efdefa083f43f139964d040093b3233346 Mon Sep 17 00:00:00 2001 From: Oliver Sanders Date: Fri, 17 Apr 2026 12:54:02 +0100 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Ronnie Dutta <61982285+MetRonnie@users.noreply.github.com> --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4e4b043..3129d4b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -102,7 +102,7 @@ exclude_dirs = ["metomi/isodatetime/tests"] [tool.ruff] line-length = 79 -target-version = "py312" +target-version = "py310" [tool.ruff.format] quote-style = "preserve" @@ -110,7 +110,7 @@ quote-style = "preserve" [tool.black] line-length = 79 -target-version = ['py312'] +target-version = ['py310'] skip-string-normalization = true