From 25e42e8a9c92befea66692b9bcbc002cb247be01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Fri, 8 Nov 2024 11:58:21 +0100 Subject: [PATCH] chore: better makefile --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 3b6c47f..b1b349b 100644 --- a/Makefile +++ b/Makefile @@ -4,13 +4,16 @@ test-requirements: test: test-lint test-unit test-types test-format ## Run all tests by decreasing order of priority test-format: ## Run code formatting tests - black --check --diff tests.py + black --check --diff *.py test-lint: ## Run code linting tests - pylint --errors-only --enable=unused-import,unused-argument --ignore=templates tests.py + pylint --errors-only --enable=unused-import,unused-argument --ignore=templates *.py test-unit: ## Run unit tests python -m unittest run ./tests.py test-types: ## Check type definitions - mypy --ignore-missing-imports --implicit-reexport --strict tests.py + mypy --ignore-missing-imports --implicit-reexport --strict *.py + +format: ## Format code + black *.py