[flake8]
show-source=true
statistics=true
max-line-length = 80
per-file-ignores =
    # line too long
    icefall/diagnostics.py: E501
    egs/*/ASR/*/conformer.py: E501,
    egs/*/ASR/pruned_transducer_stateless*/*.py: E501,
    egs/*/ASR/*/optim.py: E501,
    egs/*/ASR/*/scaling.py: E501,
    egs/librispeech/ASR/conv_emformer_transducer_stateless/*.py: E501, E203

    # invalid escape sequence (cause by tex formular), W605
    icefall/utils.py: E501, W605

exclude =
  .git,
  **/data/**,
  icefall/shared/make_kn_lm.py,
  icefall/__init__.py
