Skip to content

Re-enable displaying type errors in pyrefly#5046

Open
sivel wants to merge 4 commits intodense-analysis:masterfrom
sivel:pyrefly-display-type-errors
Open

Re-enable displaying type errors in pyrefly#5046
sivel wants to merge 4 commits intodense-analysis:masterfrom
sivel:pyrefly-display-type-errors

Conversation

@sivel
Copy link
Copy Markdown

@sivel sivel commented Sep 9, 2025

In pyrefly 0.31.1 a new configuration python.pyrefly.displayTypeErrors was added, changing the previous default behavior.

This PR adds the appropriate LSP configuration to restore the behavior for the ale pyrefly linter, including a new python_pyrefly_config option to allow further configuration of the LSP.

@sivel
Copy link
Copy Markdown
Author

sivel commented Sep 22, 2025

cc @oliverralbertini @connernilsen if either of you are interested

Copy link
Copy Markdown

@connernilsen connernilsen left a comment

Choose a reason for hiding this comment

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

Thanks for doing this @sivel! Left two comments around documentation clarity, but otherwise looks great!

Copy link
Copy Markdown
Contributor

@oliverralbertini oliverralbertini left a comment

Choose a reason for hiding this comment

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

Thanks for adding this.

@hsanson hsanson closed this Oct 26, 2025
@hsanson hsanson reopened this Oct 26, 2025
@sivel
Copy link
Copy Markdown
Author

sivel commented Nov 12, 2025

@hsanson I've addressed the linting issue that CI uncovered. I think the tests can be kicked off again.

Copy link
Copy Markdown
Contributor

@hsanson hsanson left a comment

Choose a reason for hiding this comment

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

Looks good, but there are some linter errors that need fixing.

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