Skip to content

Merge pull request #16 from sco1/pre-commit-ci-update-config #33

Merge pull request #16 from sco1/pre-commit-ci-update-config

Merge pull request #16 from sco1/pre-commit-ci-update-config #33

Workflow file for this run

name: lint
on:
pull_request:
push:
branches:
- main
tags-ignore:
- "**" # Skip re-linting when tags are added
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Poetry for caching
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
cache: 'poetry'
- name: Install dependencies
run: |
python -m pip install -U pip setuptools importlib-metadata
pip install poetry
poetry install
- name: Run mypy
run: poetry run mypy .
if: always()