[flake8]
exclude = ecdsa,.git,__pycache__,.eggs,build
max-line-length = 160
ignore =
    # multiple spaces before operator - used for visual indent of constants in some files
    E221,

    # various future imports we don't need: absolute_import, with_statement, unicode_literals, generator_stop
    # nested_scopes, generators, annotations
    #
    # See https://pypi.org/project/flake8-future-import/ for list
    FI11, FI12, FI14, FI15, FI16, FI17, FI18,

    # future imports we do need: division, print_function
    FI50, FI53,
per-file-ignores =
    # tests often manipulate sys.path before importing the main tools, so ignore import order violations
    test/*.py: E402,

    # multiple spaces after ',' - used for visual layout of eFuse data
    espressif/efuse/*/mem_definition.py:  E241,
    espressif/efuse/*/fields.py:  E241,

    # don't require future imports or check for unused imports in __init__.py files
    __init__.py: FI10, FI13, F401

