Skip to content

Commit

Permalink
Replace use_default_list with is_default_list
Browse files Browse the repository at this point in the history
  • Loading branch information
ymyzk committed Jan 8, 2022
1 parent 37566a7 commit 8d731e5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/tox_gh_actions/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,9 @@ def is_log_grouping_enabled(options: Parsed) -> bool:

def is_env_specified(config: Config) -> bool:
"""Returns True when environments are explicitly given"""
if os.environ.get("TOXENV"):
# When TOXENV is a non-empty string
return True
elif hasattr(config.options, "env") and not config.options.env.use_default_list:
# When command line argument (-e) is given
if hasattr(config.options, "env") and not config.options.env.is_default_list:
# is_default_list becomes False when TOXENV is a non-empty string
# and when command line argument (-e) is given.
return True
return False

Expand Down

0 comments on commit 8d731e5

Please sign in to comment.