From 28c1b62dae86a5c8d91340d8fe4348a9e0cf2770 Mon Sep 17 00:00:00 2001 From: Volodymyr Pivoshenko Date: Sun, 23 Jun 2024 12:41:18 +0100 Subject: [PATCH] chore(poe): update `format` tasks --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 7816147..53838ca 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -190,7 +190,8 @@ poetry_command = "" help = "Run formatters" args = { dir = { options = ["--directory", "-d"], default = ".", help = "Target directory" } } sequence = [ - { shell = "find ${dir} -type f -name '*.py' | xargs pyupgrade --py312-plus", help = "Run annotations formatter" }, + { shell = "find src -type f -name '*.py' | xargs pyupgrade --py312-plus", help = "Run annotations formatter" }, + { shell = "find tests -type f -name '*.py' | xargs pyupgrade --py312-plus", help = "Run annotations formatter" }, { shell = "isort ${dir}", help = "Run imports formatter" }, { shell = "ruff format ${dir}", help = "Run code formatter" } ]