diff options
| author | Anthony Sottile <asottile@umich.edu> | 2019-01-30 18:59:50 -0800 |
|---|---|---|
| committer | Anthony Sottile <asottile@umich.edu> | 2019-01-30 19:01:49 -0800 |
| commit | f7a7e5811998e9ab64b6c7d027a8487b05121b33 (patch) | |
| tree | bd3de923b767b850592d31f969772da09458830f /src/flake8 | |
| parent | 7ba8da2a6167593c9c040dd7e12521520c623e3c (diff) | |
| download | flake8-f7a7e5811998e9ab64b6c7d027a8487b05121b33.tar.gz | |
Gracefully ignore flake8-per-file-ignores if installed
Diffstat (limited to 'src/flake8')
| -rw-r--r-- | src/flake8/plugins/manager.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/flake8/plugins/manager.py b/src/flake8/plugins/manager.py index 28b4b35..303c0f9 100644 --- a/src/flake8/plugins/manager.py +++ b/src/flake8/plugins/manager.py @@ -256,6 +256,12 @@ class PluginManager(object): # pylint: disable=too-few-public-methods def _load_entrypoint_plugins(self): LOG.info('Loading entry-points for "%s".', self.namespace) for entry_point in entrypoints.get_group_all(self.namespace): + if entry_point.name == "per-file-ignores": + LOG.warning( + "flake8-per-file-ignores plugin is incompatible with " + "flake8>=3.7 (which implements per-file-ignores itself)." + ) + continue self._load_plugin_from_entrypoint(entry_point) def _load_plugin_from_entrypoint(self, entry_point, local=False): |
