Skip to content

Commit

Permalink
chore: add GitHub workflow to run Mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
akaihola committed Sep 30, 2024
1 parent e2a2489 commit 0f49a3d
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
name: Linting

on:
push:
paths-ignore:
- 'aider/website/**'
- README.md
- HISTORY.md
branches:
- main
pull_request:
paths-ignore:
- 'aider/website/**'
- README.md
branches:
- main

jobs:
mypy:
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mypy
pip install '.[dev]'
- name: Run Mypy
uses: wearerequired/lint-action@v2.3.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
mypy: true
mypy_args: "."
continue_on_error: false

0 comments on commit 0f49a3d

Please sign in to comment.