summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Meyer <carl@oddbird.net>2017-10-25 08:57:46 -0700
committerCarl Meyer <carl@oddbird.net>2017-10-25 08:57:46 -0700
commitdd1e9d1cb7e9a232946c06aca1564d48d4d6f65e (patch)
tree34c303d2340e252d1e3430e729fbf338ad437102
parent423980164b258b2ec77d8d9bfccb9bc00b220e31 (diff)
downloadflake8-dd1e9d1cb7e9a232946c06aca1564d48d4d6f65e.tar.gz
Use default comma-separated regex for local-plugin paths.
-rw-r--r--docs/source/user/configuration.rst2
-rw-r--r--src/flake8/options/config.py3
2 files changed, 2 insertions, 3 deletions
diff --git a/docs/source/user/configuration.rst b/docs/source/user/configuration.rst
index b036eff..e6b3de8 100644
--- a/docs/source/user/configuration.rst
+++ b/docs/source/user/configuration.rst
@@ -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.
diff --git a/src/flake8/options/config.py b/src/flake8/options/config.py
index b5b42fb..ba9442a 100644
--- a/src/flake8/options/config.py
+++ b/src/flake8/options/config.py
@@ -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: