André Felipe Dias
André Felipe Dias
I was about to ask for this one too!
I created an example to insert the current Python version into the `cookiecutter.json` file: ```python # hooks/pre_prompt.py import json import sys from pathlib import Path config = Path("cookiecutter.json") data =...
I've got a new issue on alt-pytest-asyncio that might be related to #8 since the library [databases relies on ContextVars](https://github.com/encode/databases/blob/ae3fb16f40201d9ed0ed31bea31a289127169568/databases/core.py#L39). I created a minimal example to show the problem: ```python...
The exact same issue was reported [here](https://github.com/encode/databases/issues/570#issuecomment-2061806278). There is another comment in the previous link that mentions [anyio pytest-plugin](https://github.com/encode/databases/issues/570#issuecomment-2062125145) as a possible solution. I saw somewhere else about using [asyncio.Runner](https://docs.python.org/3.11/library/asyncio-runner.html#runner-context-manager)...