Skip to content

Commit

Permalink
- clean up argparse defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
dataflake committed Oct 7, 2023
1 parent e07ea8c commit 2594956
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/config-package.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ def handle_command_line_arguments():
'--no-flake8',
dest='use_flake8',
action='store_false',
default=None,
default=True,
help='Do not include flake8 and isort in the linting configuration.')
parser.add_argument(
'--with-appveyor',
dest='with_appveyor',
action='store_true',
default=None,
default=False,
help='Activate running tests on AppVeyor, too, '
'if not already configured in .meta.toml.')
parser.add_argument(
Expand Down Expand Up @@ -98,7 +98,7 @@ def handle_command_line_arguments():
'--with-sphinx',
dest='with_docs',
action='store_true',
default=None,
default=False,
help='Activate building docs if not already configured in .meta.toml.')
parser.add_argument(
'--with-sphinx-doctests',
Expand Down Expand Up @@ -274,7 +274,7 @@ def _set_python_config_value(self, name, default=False):
existing_value = self.meta_cfg['python'].get(key, default)
arg_value = getattr(self.args, key.replace('-', '_'))
new_value = existing_value or arg_value
self.meta_cfg['python'][key] = new_value or default
self.meta_cfg['python'][key] = new_value
return new_value

def _clean_up_old_settings(self):
Expand Down

0 comments on commit 2594956

Please sign in to comment.