From e17c217e536fd51e11d988c1ebf87fd17159849e Mon Sep 17 00:00:00 2001 From: HSN Date: Fri, 27 Dec 2024 23:05:24 +0600 Subject: [PATCH] feat: new tasks added for linting and formatting --- pyproject.toml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 72e82bc2..1e1160d2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -67,7 +67,13 @@ requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" [tool.poe.tasks] +test = "py.test -s" clear-cache = "rm -rf .chkware_cache" -requirements-root = 'poetry export --output requirements.txt' -requirements-test = 'poetry export --output requirements-dev.txt --with test' + +requirements-root = "poetry export --output requirements.txt" +requirements-test = "poetry export --output requirements-dev.txt --with test" requirements = ["requirements-root", "requirements-test"] + +fix-format = "ruff format --config ruff.toml chk" +fix-check = "ruff check --config ruff.toml chk" +fix = ["fix-check", "fix-format"]