From 659eb1ff4198a9cdc3d722a226cd424e771288bd Mon Sep 17 00:00:00 2001 From: Jeferson Daniel Date: Tue, 3 Oct 2023 23:18:29 -0300 Subject: [PATCH] chore: Update lint error message --- phulpyfile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phulpyfile.py b/phulpyfile.py index 2bae317..3a3a71d 100644 --- a/phulpyfile.py +++ b/phulpyfile.py @@ -14,13 +14,13 @@ def test(phulpy): def lint(phulpy): pydantic_mongo_dir = "pydantic_mongo" for cmd, message in ( - (f"flake8 {pydantic_mongo_dir}", "lint test failed"), + (f"flake8 {pydantic_mongo_dir}", "please check flake8 errors"), (f"isort {pydantic_mongo_dir} --profile black --check", "please run isort!"), (f"black {pydantic_mongo_dir} --check", "please run black!"), ): result = system(cmd) if result: - raise Exception("lint test failed") + raise Exception(f"Lint failed: {message}") @task