[flake8]
exclude=
    # generic excludes
    .git,__pycache__,
    # generated files
    demos/speech_recognition_deepspeech_demo/python/ctcdecode-numpy/ctcdecode_numpy/impl.py,
    models/public/mozilla-deepspeech-0.8.2/mds_convert_utils/memmapped_file_system_pb2.py,

select=
    # flake8-comprehensions issues
    C4,
    # indentation problems
    E10,E11,
    # closing bracket does not match indentation of opening brackets line
    E123,
    # whitespace before '('
    E211,
    # missing whitespace after ',', ';', or ':'
    E231,
    # missing whitespace after keyword
    E275,
    # expected 1 blank line, found 0
    E301,
    # blank lines found after function decorator
    E304,
    # the backslash is redundant between brackets
    E502,
    # statement style issues
    E7,
    # parse errors
    E9,
    # pyflakes checks
    F4,F5,F6,F7,F8,F9,
    # deprecation warnings
    W6,

ignore=
    # multiple statements on one line (colon/def)
    # ignored because putting a statement after a colon is harmless and
    # sometimes results in more compact code
    E701,E704,
