riga / law

Build large-scale task workflows: luigi + job submission + remote targets + environment sandboxing using Docker/Singularity
http://law.readthedocs.io
BSD 3-Clause "New" or "Revised" License
98 stars 41 forks source link

switch so safe loading of yaml files #111

Closed harrypuuter closed 3 years ago

harrypuuter commented 3 years ago

switching from load to safe_load avoids this warning to be printed, and the possibility of unsafe behavior:

 YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read
 https://msg.pyyaml.org/load for full details.
riga commented 3 years ago

Thanks for the PR 🎉

Sounds like an obvious thing to do. Merging...