diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index b27d999e..739c5a40 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -31,4 +31,5 @@ jobs: - name: Pylint run: | make lint + make spell_check diff --git a/Makefile b/Makefile index 884e52c6..597e32c9 100644 --- a/Makefile +++ b/Makefile @@ -34,11 +34,17 @@ tests: ################################################ # LINT ################################################ +PYTHON_FILES=. +MYPY_CACHE=.mypy_cache lint: ruff check . + ruff format . --diff + ruff --select I . + mkdir -p $(MYPY_CACHE) && mypy --install-types --non-interactive $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) - +spell_check: + codespell --toml pyproject.toml ################################################ # FORMAT ################################################ @@ -60,4 +66,4 @@ help: @echo 'tests TEST_FILE= - run all tests in file' -.PHONY: all clean build install test tests help +.PHONY: all clean build install test tests help lint spell_check diff --git a/tests/test_requirements.txt b/tests/test_requirements.txt index eb41681e..a1035328 100644 --- a/tests/test_requirements.txt +++ b/tests/test_requirements.txt @@ -6,3 +6,5 @@ httpx==0.26.0 pytest==8.0.0 pytest-mock==3.12.0 ruff +mypy +codespell