Skip to content

Integrate with the mypy daemon #391

Open
@gatesn

Description

@gatesn

@gvanrossum creating a separate issue to discuss this.

I've poked around mypy a little and I'm very pleased at the sight of the fscache module. The reason pyls doesn't integrate with pylint is because we have no way of telling pylint to read from our workspace (in-memory view of what's in the client's buffers).

I imagine it would be pretty easy to patch the FileSystemCache class to read from our workspace. The downsides of this approach are:

  • FileSystemCache isn't public API so it could change at any time.
  • We can't easily patch something inside the mypy daemon. And even if we can, we need to make it talk back to pyls.

Another approach might be to run the mypy daemon within the pyls process. The daemon's lifetime is then tied to that of your client which seems quite reasonable, particularly if we make use of the remote caching feature. I might give this a go.

Metadata

Metadata

Assignees

No one assigned

    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