From d6b7892d7ac0817e0ff800df5cc73b0acfb06748 Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Wed, 12 May 2021 18:37:37 +0200 Subject: [PATCH] [mod] #162: Add make isort rule Add isort to check rule Align mypy --- Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index ce9b7165..6ec8da8e 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: docs tests check check-format mypy pylint format build deploy deploy_test +.PHONY: docs tests check check-format mypy isort pylint format build deploy deploy_test .SILENT: deploy deploy_test # do not echo commands with password # generate documentation @@ -10,13 +10,16 @@ tests: poetry run python3 -m unittest ${TESTS_FILTER} # check -check: mypy pylint check-format +check: mypy isort pylint check-format # check static typing mypy: - poetry run mypy duniterpy --ignore-missing-imports - poetry run mypy tests --ignore-missing-imports - poetry run mypy examples --ignore-missing-imports + poetry run mypy duniterpy --ignore-missing-imports + poetry run mypy tests --ignore-missing-imports + poetry run mypy examples --ignore-missing-imports + +isort: + poetry run isort duniterpy tests examples # check code errors pylint: -- GitLab