[flake8]
max-line-length = 120
exclude =
    .git,
    __pycache__,
    .venv,
    venv,
    build,
    dist,
    migrations,
    .eggs,
    *.egg

ignore =
    # Line break before binary operator (black compatibility)
    W503,
    # Line break after binary operator (black compatibility)
    W504,
    # Whitespace before ':'
    E203,
    # Import at top of file
    E402,
    # Module imported but unused
    F401,
    # Local variable assigned but never used
    F841

per-file-ignores =
    # Imported but unused in __init__.py files is OK
    __init__.py:F401
    # Settings files can have star imports
    settings.py:F401,F403

max-complexity = 10

# Count errors
count = True
# Show source code for errors
show-source = True
# Show statistics
statistics = True