Skip to content

feat: replace pylint with Pyrefly - #177

Closed
mercael91 wants to merge 1 commit into
google:copybara_pushfrom
mercael91:fix/configure-pyrefly
Closed

feat: replace pylint with Pyrefly#177
mercael91 wants to merge 1 commit into
google:copybara_pushfrom
mercael91:fix/configure-pyrefly

Conversation

@mercael91

Copy link
Copy Markdown

Summary

Replace pylint with Pyrefly type checker to align with Google's internal tooling, as described in #174.

Changes

  • Added pyrefly.toml with the blessed Google OSS configuration from the issue
  • Updated .pre-commit-config.yaml — replaced pylint hook with pyrefly check
  • Updated Makefile — replaced pylint target with pyrefly target
  • Updated pyproject.toml — replaced pylint and pylint-per-file-ignores dev dependencies with pyrefly>=0.20.0
  • Removed .pylintrc — no longer needed

Fixes #174

Replace pylint with Pyrefly type checker to align with Google's
internal tooling. This change:

- Adds pyrefly.toml with the blessed Google OSS configuration
- Replaces pylint with pyrefly in pre-commit hooks
- Replaces pylint with pyrefly in Makefile targets
- Updates dev dependencies in pyproject.toml
- Removes .pylintrc (no longer needed)

Fixes google#174

Signed-off-by: mercael <mercael91@gmail.com>
@mercael91

Copy link
Copy Markdown
Author

Pushed an update: feat: replace pylint with Pyrefly. Ready for re-review when you have a moment.

1 similar comment
@mercael91

Copy link
Copy Markdown
Author

Pushed an update: feat: replace pylint with Pyrefly. Ready for re-review when you have a moment.

@mercael91

Copy link
Copy Markdown
Author

Closing this PR — it has been open for over a week without a response. Thank you for the project; happy to reopen or continue if there is interest.

@mercael91 mercael91 closed this Aug 19, 2026

@s2t2 s2t2 left a comment

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.

Hi @mercael91 thanks for this PR.

Sorry if you felt we moved a little slow in reviewing this PR.

Perhaps we should update the documentation to give guidance about slower expected review pace.

As a side note, we had an existing Pyrefly effort going in #175.

We definitely welcome your contributions moving forward!

Comment thread .pre-commit-config.yaml
#entry: pylint --rcfile=.pylintrc --ignore=proto smart_control
#entry: pylint --rcfile=.pylintrc --ignore=proto $(git diff --name-only --staged | grep -E '\.py$')
entry: pylint --rcfile=.pylintrc --ignore=proto
- id: pyrefly

@s2t2 s2t2 Aug 20, 2026

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.

Just to clarify, pyrefly is replacing pytype, not pylint. Sorry for any confusion. I have updated the issue description.

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.

Configure Pyrefly

2 participants