Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update argparse default argument format #103

Merged
merged 1 commit into from Apr 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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