Skip to content

Commit

Permalink
chore: Update lint error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jefersondaniel committed Oct 4, 2023
1 parent 123f9a2 commit 659eb1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phulpyfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 659eb1f

Please sign in to comment.