flake8/tests/unit/plugins
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
..
__init__.py rework plugin loading 2021-12-31 15:09:54 -08:00
finder_test.py prevent duplicate plugin discovery on misconfigured pythons 2022-07-31 18:03:25 -04:00
pycodestyle_test.py pregenerate the pycodestyle plugin to avoid call overhead 2022-01-25 13:52:54 -05:00
reporter_test.py rework plugin loading 2021-12-31 15:09:54 -08:00