From e980634dad201101e4392f50d6ef4f40c4a0935a Mon Sep 17 00:00:00 2001 From: Giorgio Salluzzo Date: Mon, 1 Dec 2025 09:33:24 +0100 Subject: [PATCH 1/2] Needed for some dependencies. --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 979b351..db0fc51 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -48,6 +48,7 @@ jobs: up-flags: "--no-start" - name: Install dependencies run: | + sudo apt-get update && sudo apt-get -y install python3-dev make develop make services-up - name: Test From 79e75d027ef0d4ea53257435102918f2557f845c Mon Sep 17 00:00:00 2001 From: Giorgio Salluzzo Date: Mon, 1 Dec 2025 10:20:16 +0100 Subject: [PATCH 2/2] Skip mypy for PyPy. --- .github/workflows/main.yml | 8 +++++--- Makefile | 8 ++++++-- pyproject.toml | 2 +- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index db0fc51..b5b8cff 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -48,13 +48,15 @@ jobs: up-flags: "--no-start" - name: Install dependencies run: | - sudo apt-get update && sudo apt-get -y install python3-dev make develop make services-up - name: Test run: | - make test - make services-down + if [[ "${{ matrix.python-version }}" == pypy* ]]; then + SKIP_MYPY=1 make test + else + make test + fi - name: Minimize uv cache run: uv cache prune --ci - name: Upload coverage reports to Codecov diff --git a/Makefile b/Makefile index 445a345..e35b0a5 100644 --- a/Makefile +++ b/Makefile @@ -26,8 +26,12 @@ setup: develop develop: install-dev-requirements install-test-requirements types: - @echo "Type checking Python files" - $(VENV_PATH)/mypy --pretty + @if [ -n "$$SKIP_MYPY" ]; then \ + echo "Skipping mypy types check because SKIP_MYPY is set"; \ + else \ + echo "Type checking Python files"; \ + $(VENV_PATH)/mypy --pretty; \ + fi @echo "" test: types diff --git a/pyproject.toml b/pyproject.toml index 0b5e9da..f20dbb9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,7 +62,7 @@ test = [ "fastapi", "aiohttp", "wait-for-it", - "mypy", + "mypy; platform_python_implementation!='PyPy'", "types-decorator", "types-requests", "trio",