Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Point mypy at redwood type stub directly #6971

Merged
merged 1 commit into from
Oct 11, 2023
Merged

Conversation

legoktm
Copy link
Member

@legoktm legoktm commented Oct 4, 2023

Status

Ready for review

Description of Changes

Instead of the possibly slow process of compiling redwood and installing it into the virtualenv, we can just point mypy at the stub directly. (For some reason mypy wanted us to use an explicit "tuple" type.)

Notably this means you can run the lint process without needing a Rust toolchain installed.

Refs #6831.

Testing

How should the reviewer test this PR?

  • CI passes
  • clear Rust build cache with rm -rf target and then run make typelint, it should not compile Rust code.

Deployment

Any special considerations for deployment? No

Checklist

  • Linting (make lint) and tests (make test) pass in the development container

Instead of the possibly slow process of compiling redwood and installing
it into the virtualenv, we can just point mypy at the stub directly.
(For some reason mypy wanted us to use an explicit "tuple" type.)

Notably this means you can run the lint process without needing a Rust
toolchain installed.

Refs #6831.
Copy link
Contributor

@zenmonkeykstop zenmonkeykstop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@zenmonkeykstop zenmonkeykstop merged commit 8ff002d into develop Oct 11, 2023
@legoktm legoktm deleted the faster-mypy branch October 11, 2023 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants