Skip to content

Run pylance tests in CI - #5051

Closed
srittau wants to merge 2 commits into
masterfrom
pylance
Closed

srittau wants to merge 2 commits into
masterfrom
pylance

Conversation

@srittau

@srittau srittau commented Feb 22, 2021

Copy link
Copy Markdown
Collaborator

No description provided.

@srittau srittau mentioned this pull request Feb 22, 2021
Comment thread tests/pyright_test.py


_WELL_KNOWN_FILE = Path("tests", "pyright_test.py")
_PYRIGHT_COMMAND = ["npx", "-p", "pyright@1.1.113", "pyright"]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should this be unpinned, if mypy is getting run at master (based on the requirements file, anyway)?

@jakebailey jakebailey Feb 22, 2021 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ah, I see #5048 says this is probably just a starter PR, ignore me :)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think we'd prefer a pinned version, so our CI doesn't start failing with no action. mypy is currently run from master because of transitional state around the recent directory reorganization.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Pinning mypy was discussed in #4332. I am still in favor of it (and we should also pin pytest while we are at it). As Jelle pointed out, using master has the disadvantage that build can fail for reasons unrelated to a PR.

- run: ./tests/mypy_test_suite.py

pyright:
name: Run the pyright test suite

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
name: Run the pyright test suite
name: Run pyright against the stubs

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.

4 participants