Qol nov 2024 (#9) #1
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: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install .[lint] | |
- name: Verify pyproject format ran | |
run: pyproject-fmt --check pyproject.toml | |
- name: Verify ssort ran | |
run: ssort --check src | |
- name: Verify Ruff Formatter ran | |
run: ruff format --check src | |
- name: Run Ruff linter | |
run: ruff check --output-format=github src | |
- name: Run mypy | |
run: mypy --show-error-codes -p upstage |