Skip to content

Lint with ruff, pyright and mypy the examples and extra folders #88

Lint with ruff, pyright and mypy the examples and extra folders

Lint with ruff, pyright and mypy the examples and extra folders #88

name: Linting Python custom files
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install Poetry
uses: snok/install-poetry@76e04a911780d5b312d89783f7b1cd627778900a # v1.4.1
- name: Install dependencies
run: poetry install
# The init, sdkhooks.py and types.py files in the _hooks folders are generated by Speakeasy hence the exclusion
- name: Run all linters
run: scripts/lint_custom_code.sh