From 9f2100dbce6f86acd8d27a1ae2954439ae554fc8 Mon Sep 17 00:00:00 2001 From: Robin Vobruba Date: Fri, 20 Dec 2024 17:45:56 +0100 Subject: [PATCH] Only exit with !=0 for `poe lint` if errors (E) were found [fix] --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 22869bf..b5d0b8e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,7 +50,7 @@ clean = {ref = "_clean", help = "Clean up temporary files"} build = {cmd = "poetry build"} format = {shell = "isort krawl && yapf -i -r -vv -p krawl", help = "Format the code using YAPF"} check_format = {shell = "isort --check-only krawl && yapf -i -r -vv -p krawl", help = "Check whether the formatting is correct. Exits with 0 if it is"} -lint = {cmd = "pylint ./krawl", help = "Use PyLint to evaluate the code quality"} +lint = {cmd = "pylint --fail-under 5 --fail-on E krawl", help = "Use PyLint to evaluate the code quality"} _publish = {cmd = "poetry publish"} release = {sequence = ["format", "test", "build", "_publish"], help = "Create a release of the application and publish it on PyPi"} test = {cmd = "python -m unittest tests/**/*.py", help = "Run the test suits"}