Skip to content

Commit

Permalink
chore(poe): update format tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
pivoshenko committed Jun 23, 2024
1 parent 34aaca8 commit 28c1b62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
]
Expand Down

0 comments on commit 28c1b62

Please sign in to comment.