Skip to content
Commit 40d06355 authored by Matthew Hughes's avatar Matthew Hughes
Browse files

Update `flake8`

This required fixes an error in the config (I also updated the relevant
link, the old one would 404):

    ValueError: Error code '#' supplied to 'extend-ignore' option does not match '^[A-Z]{1,3}[0-9]{0,3}$'

And some errors in the code:

    isort/literal.py:59:8: E721 do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()`
    tests/unit/test_isort.py:13:1: F401 'typing.Dict' imported but unused

The second test conflicted with `mypy`, since `Dict` was only used in
commented annotations, to make them both happy move one of these
annotations out of a comment (in the future we should probably move all
such annotations out of comments)
parent 9409a3e8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment