diff --git a/libs/cli/pyproject.toml b/libs/cli/pyproject.toml index ed3c8c2bbc8ee..9fc827408b55f 100644 --- a/libs/cli/pyproject.toml +++ b/libs/cli/pyproject.toml @@ -44,9 +44,13 @@ select = [ [tool.poe.tasks] test = "poetry run pytest" watch = "poetry run ptw" -lint = "poetry run ruff ." -format = "poetry run ruff . --fix" +lint = ["_lint", "_check_formatting"] +format = ["_lint_fix", "_format"] +_check_formatting = "poetry run ruff format . --diff" +_lint = "poetry run ruff ." +_format = "poetry run ruff format ." +_lint_fix = "poetry run ruff . --fix" [build-system] requires = ["poetry-core"]