Skip to content

Fix type checker errors for libraries such as Polars where Altair uses dataframe interchange protocol #2250

Fix type checker errors for libraries such as Polars where Altair uses dataframe interchange protocol

Fix type checker errors for libraries such as Polars where Altair uses dataframe interchange protocol #2250

Workflow file for this run

name: lint
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
name: ruff-mypy
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
# Installing all dependencies and not just the linters as mypy needs them for type checking
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
- name: Lint with ruff
run: |
ruff check .
- name: Check formatting with ruff
run: |
ruff format --diff .
ruff format --check .
- name: Lint with mypy
run: |
mypy altair tests