Use upstream black

Offen
#684 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 7 Tagen

@dhruvarayasam arbeitet bereits daran.

Seit 05.1.2025.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
45/100
Issue-Typ
Refactoring
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
python

Rechercherichtung

Start in pyproject.toml, where the black configuration excludes the ropetest directory, and look for # fmt: off markers around dedent()-ed strings in the Python sources. Confirm which black version is pinned and whether the upstream fix is released before changing anything. Done when the exclusion is removed, any unneeded # fmt: off markers are gone, and black runs cleanly over the repository.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

cleanup good first issue
Description

Now that https://github.com/psf/black/pull/1879 is merged, once that PR is in a versioned release of black, we would be able to undo the hacks that were needed to work around black's previously broken handling of dedent()-ed strings.

  • We used to filter out ropetest from being blackened, this would no longer be needed
  • It may be possible to remove some #fmt: off markers
Vorherrschende Sprache
Python
Sterne
2.2k
Forks
197
Ø Merge
2 T. 13 Std.
Gemergte PRs (30 T.)
5

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus python-rope/rope

Alle Issues in python-rope/rope

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

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