Add B014 ignore
@@ -26,8 +26,13 @@ exclude =
per-file-ignores =
# B011: Do not call assert False since python -O removes these calls
tests/*: B011
- # TODO: Remove this when fixing flake8-bugbear warnings in source
- src/pip/*: B007,B008,B009,B014,B305
+ # TODO: Remove IOError from except (OSError, IOError) blocks in
+ # these files when Python 2 is removed.
+ # In Python 3, IOError have been merged into OSError
+ # https://github.com/PyCQA/flake8-bugbear/issues/110
+ src/pip/_internal/utils/filesystem.py: B014
+ src/pip/_internal/network/cache.py: B014
+ src/pip/_internal/utils/misc.py: B014
[mypy]
follow_imports = silent
ignore_missing_imports = True
