# Flake8 configuration for FluxFlow
# This is used by both pre-commit and direct flake8 runs

[flake8]
max-line-length = 100
extend-ignore =
    # E203: whitespace before ':' (conflicts with black)
    E203,
    # W503: line break before binary operator (conflicts with black)
    W503,
    # E501: line too long (handled by black)
    E501,
    # F401: imported but unused (handled by isort/IDE)
    # F841: local variable assigned but never used (sometimes intentional)

exclude =
    .git,
    __pycache__,
    .venv,
    venv,
    build,
    dist,
    .eggs,
    *.egg-info,
    .pytest_cache,
    .mypy_cache,
    outputs,
    .cache,
    .ui_configs

per-file-ignores =
    # __init__.py files can have unused imports (re-exports)
    __init__.py:F401,F403
    # Tests can have long lines for test data
    tests/*:E501

max-complexity = 15
