From 665a145cfea33fc0eb95f775c7dfc4609103e6b6 Mon Sep 17 00:00:00 2001 From: Alessandro Candido Date: Fri, 16 Feb 2024 11:03:57 +0100 Subject: [PATCH] build: Define poethepoet tasks --- pyproject.toml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d2331d2..5a25924 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,8 +14,8 @@ repository = "https://github.com/qiboteam/qibotn/" documentation = "https://qibo.science/docs/qibotn/stable" keywords = [] classifiers = [ - "Programming Language :: Python :: 3", - "Topic :: Scientific/Engineering :: Physics", + "Programming Language :: Python :: 3", + "Topic :: Scientific/Engineering :: Physics", ] packages = [{ include = "qibotn", from = "src" }] @@ -46,6 +46,11 @@ optional = true [tool.poetry.group.analysis.dependencies] pylint = "^3.0.3" +[tool.poe.tasks] +test = "pytest" +lint = "pylint src --errors-only" +lint-warnings = "pylint src --exit-zero" + [tool.pylint.main] ignored-modules = ["cupy", "cuquantum", "mpi4py"]