mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-13 16:14:18 +00:00
Use default comma-separated regex for local-plugin paths.
This commit is contained in:
parent
423980164b
commit
dd1e9d1cb7
2 changed files with 2 additions and 3 deletions
|
|
@ -284,7 +284,7 @@ the ``local-plugins`` section of your config:
|
||||||
./path/to
|
./path/to
|
||||||
|
|
||||||
Relative paths will be interpreted relative to the config file. Multiple paths
|
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
|
plugins have any dependencies, it's up to you to ensure they are installed in
|
||||||
whatever Python environment |Flake8| runs in.
|
whatever Python environment |Flake8| runs in.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -350,8 +350,7 @@ def get_local_plugins(config_finder, cli_config=None, isolated=False):
|
||||||
))
|
))
|
||||||
if config.has_option(section, 'paths'):
|
if config.has_option(section, 'paths'):
|
||||||
raw_paths = utils.parse_comma_separated_list(
|
raw_paths = utils.parse_comma_separated_list(
|
||||||
config.get(section, 'paths').strip(),
|
config.get(section, 'paths').strip()
|
||||||
regexp=utils.LOCAL_PLUGIN_LIST_RE,
|
|
||||||
)
|
)
|
||||||
norm_paths = []
|
norm_paths = []
|
||||||
for base_dir in base_dirs:
|
for base_dir in base_dirs:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue