Separate flag for enabling soft word wrap
Dieses Issue hat noch niemand übernommen.
- 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
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Ö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