Skip to content

Commit

Permalink
Update argparse default argument format (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
sondrelg committed Apr 1, 2021
1 parent e430d17 commit a1cb9f9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions flake8_pytest_style/plugin.py
Expand Up @@ -50,47 +50,47 @@ def add_options(cls, option_manager: OptionManager) -> None:
parse_from_config=True,
default=not DEFAULT_CONFIG.fixture_parentheses,
help='Omit parentheses for @pytest.fixture decorators'
' without parameters. (Default: %default)',
' without parameters. (Default: %(default)s)',
)
option_manager.add_option(
'--pytest-raises-require-match-for',
comma_separated_list=True,
parse_from_config=True,
default=DEFAULT_CONFIG.raises_require_match_for,
help='List of exceptions for which flake8-pytest-style requires'
' a match= argument in pytest.raises(). (Default: %default)',
' a match= argument in pytest.raises(). (Default: %(default)s)',
)
option_manager.add_option(
'--pytest-parametrize-names-type',
choices=enum_choices(ParametrizeNamesType),
parse_from_config=True,
default=DEFAULT_CONFIG.parametrize_names_type.value,
help='Preferred type for multiple parameter names in'
' @pytest.mark.parametrize. (Default: %default)',
' @pytest.mark.parametrize. (Default: %(default)s)',
)
option_manager.add_option(
'--pytest-parametrize-values-type',
choices=enum_choices(ParametrizeValuesType),
parse_from_config=True,
default=DEFAULT_CONFIG.parametrize_values_type.value,
help='Preferred type for values in @pytest.mark.parametrize.'
' (Default: %default)',
' (Default: %(default)s)',
)
option_manager.add_option(
'--pytest-parametrize-values-row-type',
choices=enum_choices(ParametrizeValuesRowType),
parse_from_config=True,
default=DEFAULT_CONFIG.parametrize_values_row_type.value,
help='Preferred type for each row in @pytest.mark.parametrize'
' in case of multiple parameters. (Default: %default)',
' in case of multiple parameters. (Default: %(default)s)',
)
option_manager.add_option(
'--pytest-mark-no-parentheses',
action='store_true',
parse_from_config=True,
default=not DEFAULT_CONFIG.mark_parentheses,
help='Omit parentheses for @pytest.mark.foo decorators'
' without parameters. (Default: %default)',
' without parameters. (Default: %(default)s)',
)

@classmethod
Expand Down

0 comments on commit a1cb9f9

Please sign in to comment.