Skip to content

Commit

Permalink
Run black against existing code
Browse files Browse the repository at this point in the history
  • Loading branch information
ymyzk committed Nov 6, 2020
1 parent 0a722f8 commit 9af0e8d
Show file tree
Hide file tree
Showing 2 changed files with 266 additions and 239 deletions.
5 changes: 3 additions & 2 deletions src/tox_gh_actions/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def get_python_version():
if "PyPy" in sys.version:
return "pypy" + str(sys.version_info[0])
# Assuming running on CPython
return '.'.join([str(i) for i in sys.version_info[:2]])
return ".".join([str(i) for i in sys.version_info[:2]])


def is_running_on_actions():
Expand Down Expand Up @@ -135,6 +135,7 @@ def is_env_specified(config):
# which is licensed under MIT LICENSE
# https://github.com/tox-dev/tox-travis/blob/0.12/LICENSE


def parse_dict(value):
# type: (str) -> Dict[str, str]
"""Parse a dict value from the tox config.
Expand All @@ -151,5 +152,5 @@ def parse_dict(value):
}
"""
lines = [line.strip() for line in value.strip().splitlines()]
pairs = [line.split(':', 1) for line in lines if line]
pairs = [line.split(":", 1) for line in lines if line]
return dict((k.strip(), v.strip()) for k, v in pairs)
Loading

0 comments on commit 9af0e8d

Please sign in to comment.