forgot pre-commit #87
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: [push, pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.9" | |
- name: Check format | |
uses: psf/black@stable | |
with: | |
options: "--check --diff" | |
src: "src" | |
- name: Pip install test | |
run: | | |
which python | |
python -m pip install --upgrade pip wheel | |
pip install --user ".[test]" | |
- name: Static analysis | |
run: mypy . |