[pre-commit.ci] pre-commit autoupdate #57
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |