Locates instances of yaml.load()
and replaces them with yaml.safe_load()
import yaml
with open('cfg.yaml') as cfg:
config = yaml.load(cfg)
Will raise YML100 and suggest the Safe Load Fixer. When executed the code will become
import yaml
with open('cfg.yaml') as cfg:
config = yaml.safe_load(cfg)
Keyword and ordered arguments are preserved.