Merge pull request #92 from smellman/fix-readme #37
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] | |
jobs: | |
Test: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install poetry | |
run: python -m pip install poetry | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
cache: 'poetry' | |
- name: Install dependencies | |
run: poetry install | |
- name: Check poetry.lock | |
run: poetry lock --check | |
# - name: Type-check with Pyright | |
# run: poetry run pyright . | |
- name: Lint with ruff | |
run: poetry run ruff --output-format=github . | |
- name: Format with ruff | |
run: poetry run ruff format . |