From da5490a5a11fb185c4b44c7f3f2eab77ef8d4639 Mon Sep 17 00:00:00 2001 From: jkarasti Date: Thu, 5 Dec 2024 21:45:49 +0200 Subject: [PATCH] Lint: Merge mypy makefile targets into the `lint` target --- Makefile | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index b400cf5..5a8ea40 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,6 @@ LARGE_TEST_REPO_DIR:=tests/test_docs_large GIT_DESC=$$(git describe) JUNIT_FLAGS := --capture=sys -o junit_logging=all - MYPY_ARGS := --ignore-missing-imports \ --disallow-incomplete-defs \ --disallow-untyped-defs \ @@ -10,19 +9,12 @@ MYPY_ARGS := --ignore-missing-imports \ --warn-unused-ignores \ --exclude $(LARGE_TEST_REPO_DIR)/*.py -mypy-host: - mypy $(MYPY_ARGS) dangerzone - -mypy-tests: - mypy $(MYPY_ARGS) tests - -mypy: mypy-host mypy-tests ## check type hints with mypy - .PHONY: lint lint: ## Check the code for linting, formatting, and typing issues with ruff and mypy ruff check ruff format --check - mypy + mypy $(MYPY_ARGS) dangerzone + mypy $(MYPY_ARGS) tests .PHONY: fix fix: ## apply all the suggestions from ruff