Skip to content

Switching from pyrefly-typecheck-system hook to pyrefly-typecheck-specific-version generates a bunch of new import errors #7

@rchen152

Description

@rchen152

In pytorch/helion#1143, I successfully got pyrefly running as a pre-commit hook using pyrefly-typecheck-system. When I attempted to follow a reviewer suggestion to switch to pyrefly-typecheck-specific-version, pyrefly then produced 300+ import errors. Here's the working pre-commit set-up:

-   repo: https://github.com/facebook/pyrefly-pre-commit
    rev: 0.0.1
    hooks:
      - id: pyrefly-typecheck-system
        name: Pyrefly (type checking)
        pass_filenames: false

and here's the one that produces boatloads of import errors:

-   repo: https://github.com/facebook/pyrefly-pre-commit
    rev: 0.0.1
    hooks:
      - id: pyrefly-typecheck-specific-version
        name: Pyrefly (type checking)
        pass_filenames: false
        additional_dependencies: ["pyrefly==0.42.0"]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions