flake8/src/flake8
Anthony Sottile fce93b952a prevent duplicate plugin discovery on misconfigured pythons
for example, `venv`-virtualenvs on fedora have both `lib` and `lib64` on
`sys.path` despite them being the same.  this causes
`importlib.metadata.distributions` to double-discover.

```console
$ docker run --rm -t fedora:latest bash -c 'dnf install -qq -y python3 >& /dev/null && python3 -m venv venv && venv/bin/pip -qq install cfgv && venv/bin/python - <<< "from importlib.metadata import distributions; print(len([d for d in distributions() if d.name == '"'"'cfgv'"'"']))"'
2
```
2022-07-31 18:03:25 -04:00
..
api remove unused parameter from make_formatter 2022-01-23 19:33:21 -05:00
formatting use type hints instead of :type and :rtype 2022-01-05 14:09:39 -05:00
main Fix a typo 2022-07-27 22:24:01 +02:00
options ignore config files in the home directory 2022-07-13 15:40:40 -04:00
plugins prevent duplicate plugin discovery on misconfigured pythons 2022-07-31 18:03:25 -04:00
__init__.py Release 5.0.0 2022-07-30 17:00:41 -04:00
__main__.py have application return exit code for easier testing 2021-11-14 16:29:18 -08:00
_compat.py clean up lru_cache in compat 2021-03-30 17:37:13 -07:00
checker.py Fix a typo 2022-07-27 22:24:01 +02:00
defaults.py remove dead code 2021-11-14 08:40:34 -08:00
discover_files.py use type hints instead of :type and :rtype 2022-01-05 14:09:39 -05:00
exceptions.py include the file path in the plugin execution error 2022-01-23 20:41:32 -05:00
processor.py change keyword_arguments_for so it does not modify and return 2022-01-23 19:06:06 -05:00
statistics.py use type hints instead of :type and :rtype 2022-01-05 14:09:39 -05:00
style_guide.py Remove needless sort in _style_guide_for 2022-07-31 07:37:54 -04:00
utils.py add a --require-plugins option 2022-01-22 14:08:32 -05:00
violation.py use type hints instead of :type and :rtype 2022-01-05 14:09:39 -05:00