I started using Entangled.py, thanks a lot for maintaining it! I have tons of project ideas using it.
While setting it up I had issues with these two types of code samples:
#|file:yoo.py
print("hey!")
#|file:yoo.py
#|id:me
print("hey!")
I checked the code and it looks like the strings produced are considered strings by PyYAML and the attrs variable is assumed to be a list in entangled/hooks/quarto_attributes.py. PyYAML behaves correctly if there is a space after the colon.
I might be wrong because I do not know the code base enough to give suggestions, but just in case it can help: I suggest adding a check on the type of attrs and warning the user that their quarto attributes are malformed if it is not a dict. And maybe replace the last condition if "id" in attrs by if "id" in attrs.keys()
Hello,
I started using Entangled.py, thanks a lot for maintaining it! I have tons of project ideas using it.
While setting it up I had issues with these two types of code samples:
I checked the code and it looks like the strings produced are considered strings by PyYAML and the
attrs
variable is assumed to be a list inentangled/hooks/quarto_attributes.py
. PyYAML behaves correctly if there is a space after the colon.I might be wrong because I do not know the code base enough to give suggestions, but just in case it can help: I suggest adding a check on the type of
attrs
and warning the user that their quarto attributes are malformed if it is not a dict. And maybe replace the last conditionif "id" in attrs
byif "id" in attrs.keys()