chore(deps): update dependency autopep8 to v2.1.0 #245
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Format, Lint and TypeCheck Python projects | |
on: | |
pull_request: | |
paths: | |
- python/** | |
concurrency: | |
group: ci-${{ github.workflow }}-${{ github.ref }}-python | |
cancel-in-progress: true | |
jobs: | |
format-lint-typecheck: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: python | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install poetry | |
run: pipx install poetry | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: poetry install | |
- name: Run format check | |
run: poetry run invoke format --check | |
- name: Run lint | |
run: poetry run invoke lint | |
# TODO: Find a way to avoid the mysterious error below. | |
# `Pydantic plugin not installed, please add pydantic.mypy your mypy.ini plugins` | |
# - name: Run type check for starlette_mongodb | |
# run: poetry run mypy starlette_mongodb | |
- name: Run type check for starlette_strawberry_graphql | |
run: poetry run mypy starlette_strawberry_graphql | |
- name: Run type check for starlette_strawberry_subgraph | |
run: poetry run mypy starlette_strawberry_subgraph |