Skip to content

[local linter] mypy_wrapper doesn't filter out distributed file #57967

Closed
@driazati

Description

@driazati

mypy_wrapper's logic for excluding files doesn't totally match up with mypy itself (though the file below isn't listed in mypy.ini's excludes, so who knows what's really going on)

# this fails (but shouldn't lint this file at all)
python tools/mypy_wrapper.py $(pwd)/torch/nn/parallel/distributed.py

# but this works
mypy --config mypy.ini 

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: flaky-testsProblem is a flaky test in CItriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions