Skip to content

chore: add mypy typecheck baseline#5162

Open
LuciferYang wants to merge 1 commit into
lance-format:mainfrom
LuciferYang:chore/type-checking-baseline
Open

chore: add mypy typecheck baseline#5162
LuciferYang wants to merge 1 commit into
lance-format:mainfrom
LuciferYang:chore/type-checking-baseline

Conversation

@LuciferYang
Copy link
Copy Markdown

@LuciferYang LuciferYang commented Jun 4, 2026

What

  • Add mypy, the pathspec runtime floor it needs, and typing stubs to the dev dependencies.
  • Add a PR typecheck job and a local make typecheck target.
  • Start with a strict mypy baseline for lance_ray/pandas.py, lance_ray/pool.py, and lance_ray/utils.py.

Why

This gives CI a type-checking entry point without blocking on the existing package-wide strict-mode errors. The checked file set can be expanded incrementally.

Testing

  • PATH="$PWD/.venv/bin:$PATH" make typecheck
  • Python 3.10 fresh uv sync --extra dev + uv run mypy
  • ./.venv/bin/python -m ruff check .
  • ./.venv/bin/python -m ruff format --check .
  • ./.venv/bin/python -m pytest tests/test_pool.py -q
  • ./.venv/bin/python -m pytest tests/test_fragment.py -q

Refs #65

@github-actions github-actions Bot added the chore label Jun 4, 2026
@LuciferYang LuciferYang force-pushed the chore/type-checking-baseline branch from 8907590 to 798becb Compare June 8, 2026 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant