Closed jhidding closed 11 months ago
For
chdir
: Inentangled/utility.py
try: from contextlib import chdir except ImportError: @contextmanager def chdir(wd: Path): olddir = os.getcwd() os.chdir(wd) yield wd os.chdir(olddir)
and import that in the relevant tests.
edit: no longer relevant
Currently we're using
https://docs.python.org/3/library/tomllib.html
to read TOML. We need an external library, preferablytomlkit
, since this has read/write support. Write support is also needed for theloom
feature.