Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Norberg committed Nov 2, 2020
1 parent d3a950c commit 7b6cbc7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion chartify/_core/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def to_yaml(self, filename):
def from_yaml(self, filename):
"""Load colors from yaml file"""
# Note: We assume that the contents of the config file are trusted
# TODO: Change this file format to be plain yaml so we can use SafeLoader
# TODO: Change this file format to be plain yaml and use SafeLoader
return yaml.load(open(filename), Loader=yaml.UnsafeLoader)

def overwrite_colors(self):
Expand Down
2 changes: 1 addition & 1 deletion chartify/_core/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def _from_yaml(self, filename):
Overwrites any options that are specified in the yaml file.
"""
# Note: We assume that the contents of the config file are trusted
# TODO: Change this file format to be plain yaml so we can use SafeLoader
# TODO: Change this file format to be plain yaml and use SafeLoader
yaml_options = yaml.load(open(filename), Loader=yaml.UnsafeLoader)
self._options.update(yaml_options)

Expand Down
1 change: 0 additions & 1 deletion tests/test_style_settings_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,3 @@ def test_colors_config(monkeypatch):
for key, expected_value in expected_settings.items():
actual_value = style.settings[key]
assert expected_value == actual_value

0 comments on commit 7b6cbc7

Please sign in to comment.