Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Disable capturing from inside a task #320

Open
augustebaum opened this issue Nov 26, 2022 · 1 comment
Open

ENH: Disable capturing from inside a task #320

augustebaum opened this issue Nov 26, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@augustebaum
Copy link
Contributor

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.

@augustebaum augustebaum added the enhancement New feature or request label Nov 26, 2022
@tobiasraabe
Copy link
Member

Hi @augustebaum, currently, there is no fixture mechanism in pytask and I still have to come up with a plan for implementation. But, it should be implemented at some point. And starting with capturing seems like a good idea since it is more internal. In the meantime, maybe pytask -v 0 -s also helps as a workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants