python / python/mypy

Separate flag for enabling soft word wrap

Offen
#16,688 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

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

Beschreibung

Feature

--pretty flag has all the features minus the soft word wrap
--word-wrap flag enables the soft word wrap

Pitch

Currently trying to add annotations during my mypy GHA workflow. However, parsing the full error message is difficult with the --pretty flag b/c it adds line breaks into the full error message which adds complexity to the error message matching regex. Although we could run it with --no-pretty this removes useful information such as code snippets and error location markers. It would be great if we could disable the word wrap/keep the error description on one line.

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 Befehlszeilenverarbeitung für die Flags --pretty und --word-wrap zu finden, und verfolge dann, wie die Pretty-Fehlerausgabe formatiert wird. Die Änderung ist abgeschlossen, wenn die Pretty-Ausgabe ihre vorhandenen Snippets und Positionsmarkierungen beibehält, während der Zeilenumbruch unabhängig aktiviert oder deaktiviert werden kann, mit Abdeckung für beide Flag-Einstellungen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
cli
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
50/100

Neue Issues direkt in Ihr Postfach

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