Skip to content

Chore/dev tooling upgrade - #40

Merged
TATP-233 merged 2 commits into
mainfrom
chore/dev-tooling-upgrade
Mar 16, 2026
Merged

TATP-233 merged 2 commits into
mainfrom
chore/dev-tooling-upgrade

Conversation

@TATP-233

Copy link
Copy Markdown
Collaborator

No description provided.

- pyproject.toml: add pyright>=1.1.408 to dev deps; add [tool.pyright]
  config (basic mode, targeted excludes for mujoco-uni/mlx stubs);
  add ruff src=["unilab"] for correct first-party import detection;
  tighten coverage omit to */rsl_rl/* glob
- Makefile: `make type` now runs mypy + pyright in sequence
- .pre-commit-config.yaml: ruff v0.8.4 → v0.14.14; replace mirrors-mypy
  hook with RobertCraigie/pyright-python v1.1.408
- .github/workflows/ci.yml: add global UV_FROZEN=1; add paths-ignore for
  docs/md/LICENSE changes; upgrade setup-uv v5→v6; pass python-version
  matrix param to setup-uv; typecheck job now runs both mypy and pyright
- CLAUDE.md / CONTRIBUTING.md: sync make type description and CI table

Type fixes to make pyright pass (0 errors, 7 warnings):
- base/base.py: add abstract state/init_state/step/close to ABEnv interface
- tests/: update _DummyEnv and _TestEnvA stubs to implement new ABEnv methods
- algos/torch/appo/runner.py: assert observation/action shape not None
- algos/torch/offpolicy/worker.py: assert observation/action shape not None
- algos/torch/appo/learner.py: pyright ignore on vendored resolve_optimizer
- algos/torch/fast_sac/learner.py: pyright ignore on torch.amp private API
- base/backend/motrix_backend.py: pyright ignore on possibly-unbound mtx
- utils/offpolicy_logger.py: type log_dict as dict[str, Any]; add Any import
- utils/onpolicy_logger.py: type log_dict as dict[str, Any]
- utils/torch_utils.py: pyright ignore on torch.from_dlpack private API
@TATP-233
TATP-233 merged commit e43406e into main Mar 16, 2026
0 of 10 checks passed
@TATP-233
TATP-233 deleted the chore/dev-tooling-upgrade branch March 16, 2026 10:55
TATP-233 added a commit that referenced this pull request May 4, 2026
TATP-233 added a commit that referenced this pull request Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant