Use default comma-separated regex for local-plugin paths.

This commit is contained in:
Carl Meyer 2017-10-25 08:57:46 -07:00
parent 423980164b
commit dd1e9d1cb7
2 changed files with 2 additions and 3 deletions

View file

@ -284,7 +284,7 @@ the ``local-plugins`` section of your config:
./path/to
Relative paths will be interpreted relative to the config file. Multiple paths
can be listed, one per line (or comma separated) as needed. If your local
can be listed (comma separated just like ``exclude``) as needed. If your local
plugins have any dependencies, it's up to you to ensure they are installed in
whatever Python environment |Flake8| runs in.

View file

@ -350,8 +350,7 @@ def get_local_plugins(config_finder, cli_config=None, isolated=False):
))
if config.has_option(section, 'paths'):
raw_paths = utils.parse_comma_separated_list(
config.get(section, 'paths').strip(),
regexp=utils.LOCAL_PLUGIN_LIST_RE,
config.get(section, 'paths').strip()
)
norm_paths = []
for base_dir in base_dirs: