Skip to content

Fixed linting (#48) #125

Fixed linting (#48)

Fixed linting (#48) #125

Workflow file for this run

name: GPTJSON Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
run_lint:
name: Run python linting
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.11"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install poetry
run: curl -sSL https://install.python-poetry.org | python3 -
- name: Install python dependencies
run: |
export PATH="/Users/runner/.local/bin:$PATH"
poetry install
- name: Check Python formatting with Black
run: |
poetry run black --check gpt_json
- name: Run MyPy for type checking
run: |
poetry run mypy gpt_json