Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

ENH: Disable capturing from inside a task

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

Maintainer antworten meist innerhalb von 4 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
python
Bereich
cli, testing-qa

Rechercherichtung

Start by reading pytest's capture documentation linked in the issue and comparing its fixtures with pytask's task output handling. Define the smallest fixture behavior needed for disabling capture inside a task, then verify that tqdm progress bars remain usable when running with the -s flag.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

enhancement
Is your feature request related to a problem?

I wish pytask had the same "capture-related" fixtures as pytest, like the ones described here.
In particular I'd like to be able to use the

with capsys.disabled():
    ...

behaviour, in the hope that tqdm progress bars don't break when using the -s flag.

Describe the solution you'd like

I don't know precisely how pytask differs from pytest, but perhaps it would be possible to
just re-use the above mentioned fixtures from pytest?

API breaking implications

Hopefully none, this is just adding fixtures.

Describe alternatives you've considered

None so far ^^'; I can track the progress of my task in other ways so I haven't pursued this very far.

Vorherrschende Sprache
Python
Sterne
146
Forks
14
Ø Merge
3 T. 17 Std.
Gemergte PRs (30 T.)
23

Entwicklungsumgebung

  • Kein Dockerfile und keine Docker-Compose-Datei
  • Hat eine Pull-Request-Vorlage
  • Kein Beitragsleitfaden

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 pytask-dev/pytask

Alle Issues in pytask-dev/pytask

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

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