python / python/mypy

Allow mypy client-server communication via TCP sockets

Offen
#15,614 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

feature topic-daemon
Vorherrschende Sprache
Python
Sterne
20.6k
Forks
3.3k
PR-Merge-Kennzahlen
PR-Kennzahlen ausstehend

Beschreibung

Feature

It would be useful to allow the user to define a custom TPC host:port pair and have the client communicate with a remote mypy server listening to that address.

mypy already uses a client-server architecture with the server being a daemon running in the same process space and communicating with the client via UNIX sockets (named pipes in win32) so this would not require large changes AFAIK.

Pitch

This feature would enable developers using Docker to run a mypy server inside the container, but be able to call the mypy command from the host machine just as easily as when everything runs in the same host.

This would make mypy functional to several existing editor and IDE integrations, as the call is transparently routed to the server inside the container.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit, die bestehende Client-Server-Kommunikation von mypy über UNIX-Sockets oder Windows Named Pipes nachzuverfolgen. Ermittle, wo ein benutzerdefinierter TCP host:port konfiguriert würde und wie die Verbindung zum Remote-Server funktionieren sollte, einschließlich des Docker-Anwendungsfalls. Als erledigt gilt die Aufgabe, wenn der Client mit einem entfernten mypy-Server kommunizieren kann und die bestehende lokale Kommunikation weiterhin funktioniert.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
backend, cli
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.