sk- / git-lint

improving source code one step at a time
Apache License 2.0
237 stars 78 forks source link

YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated #154

Closed thibaut-pro closed 4 years ago

thibaut-pro commented 4 years ago

Here's another warning I see:

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

Seems to be caused by https://github.com/sk-/git-lint/blob/72897abe2cf5653e9c2cf546f6e64a98c9de8628/gitlint/__init__.py#L107