#########################
# Flake8 Configuration  #
# (.flake8)             #
# (formerly in tox.ini) #
#########################

[flake8]
ignore =
    # max line length
    E501
    F401
    # star imports
    F403
    # docstring in magic method
    D105
    # line break before binary operator
    W503
    # Docstring in __init__
    D107
    # Complaining about assert statements
    S101
    # Complains about random number generators
    S311
    # Complains about pickles
    S301, S403
    # Redefinition in CLI
    F811
exclude =
    .tox,
    .git,
    __pycache__,
    docs/source/conf.py,
    build,
    dist,
    tests/fixtures/*,
    *.pyc,
    *.egg-info,
    .cache,
    .eggs
max-complexity = 25
max-line-length = 120
import-order-style = pycharm
application-import-names =
    pybel
    bel_resources
    tests
format = ${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}: ${red_bold}%(code)s${reset} %(text)s
