Update pyright disabled rules. #161
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: CI | |
on: | |
push: | |
pull_request: | |
branches: | |
- main | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
env: | |
DEFAULT_UV: "0.3.0" | |
jobs: | |
check-quality: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code from GitHub | |
uses: actions/[email protected] | |
- name: Set up uv | |
run: curl -LsSf https://astral.sh/uv/${{ env.DEFAULT_UV }}/install.sh | sh | |
- name: "Set up Python" | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Create venv and install | |
run: uv sync --all-extras --dev | |
- name: Check formatting | |
run: uv run ruff format --check | |
- name: Ruff lint/sort/etc checking | |
run: uv run ruff check --no-fix | |
- name: Run pylint | |
run: uv run pylint elkm1_lib | |
- name: Check typing | |
run: uv run mypy --show-error-codes --strict elkm1_lib | |
- name: Run pytest | |
run: uv run pytest test |