add linting

This commit is contained in:
James Turk 2024-04-26 16:06:24 -05:00
parent f69bda6506
commit 3049f3dee3

31
.github/actions/lint.yml vendored Normal file
View File

@ -0,0 +1,31 @@
name: Python Linting
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.10
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python -
- name: Install dependencies
run: poetry install
- name: ruff
run: ruff src
- name: mypy
run: mypy src