Skip to content

Commit

Permalink
Rename _{session_filters => sessions_and_keywords}_merge_func
Browse files Browse the repository at this point in the history
Revert function name to the one used before --pythons was introduced.
  • Loading branch information
cjolowicz committed Nov 13, 2020
1 parent 704c6f9 commit 682705c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nox/_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
)


def _session_filters_merge_func(
def _sessions_and_keywords_merge_func(
key: str, command_args: argparse.Namespace, noxfile_args: argparse.Namespace
) -> List[str]:
"""Only return the Noxfile value for sessions/keywords if neither sessions
Expand Down Expand Up @@ -221,7 +221,7 @@ def _session_completer(
"--session",
group=options.groups["primary"],
noxfile=True,
merge_func=functools.partial(_session_filters_merge_func, "sessions"),
merge_func=functools.partial(_sessions_and_keywords_merge_func, "sessions"),
nargs="*",
default=_sessions_default,
help="Which sessions to run. By default, all sessions will run.",
Expand All @@ -243,7 +243,7 @@ def _session_completer(
"--keywords",
group=options.groups["primary"],
noxfile=True,
merge_func=functools.partial(_session_filters_merge_func, "keywords"),
merge_func=functools.partial(_sessions_and_keywords_merge_func, "keywords"),
help="Only run sessions that match the given expression.",
),
_option_set.Option(
Expand Down

0 comments on commit 682705c

Please sign in to comment.