Skip to content

Commit

Permalink
chore: better makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
regisb committed Nov 8, 2024
1 parent ff91218 commit 25e42e8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 25e42e8

Please sign in to comment.