Skip to content

improve performance of strawberry.lazy() with relative imports #4164

improve performance of strawberry.lazy() with relative imports

improve performance of strawberry.lazy() with relative imports #4164

Workflow file for this run

name: 🦺 MyPy
on:
push:
branches: [main]
pull_request:
branches: [main]
paths:
- "strawberry/**"
- "tests/**"
- ".github/workflows/mypy.yml"
jobs:
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v4
id: setup-python
with:
python-version: '3.10'
architecture: x64
- uses: actions/checkout@v2
- run: pip install poetry
- name: "Python dependencies cache"
id: cache-poetry-dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-py-${{ steps.setup-python.outputs.python-version }}-poetry-${{ hashFiles('poetry.lock') }}
restore-keys: ${{ runner.os }}-py-${{ steps.setup-python.outputs.python-version }}-poetry-
- name: Install dependencies
run: poetry install
if: steps.cache-poetry-dependencies.outputs.cache-hit != 'true'
- run: mkdir -p .mypy_cache
- run: poetry run mypy --config-file mypy.ini