[flake8]
max-line-length = 120
max-complexity = 10
exclude =
    # Other languages
    *.js,
    css,
    js,

    # Bytecode
    *.pyc,

    # Configuration files
    .git,

ignore =
    # NDB instrospection support
    # *Comparison to true should be 'if cond is true:' or 'if cond:'*
    # https://lintlyci.github.io/Flake8Rules/rules/E712.html
    # e.g.: User.query(User.verified == False)
    E712,
    # *Comparison to None should be 'if cond is not None:'*
    # https://lintlyci.github.io/Flake8Rules/rules/E711.html
    # e.g.: Shop.query(pdt.Shop.chain == None)
    E711,

    # *Line-break occurred before binary operator*
    # https://lintlyci.github.io/Flake8Rules/rules/W503.html
    # Because it is the opposite of PEP8 and will be reversed in the future
    # e.g.:
    #   is_amount_equal_to_immediately_after_amount = (
    #       not is_amount_equal_to_prior_amount
    #       and history
    #       and insertion_idx < len(history)
    #   )
    W503,

    # *Remove bad quotes from multiple lines string*
    # https://github.com/zheller/flake8-quotes/blob/4dbc2e/flake8_quotes/__init__.py#L220
    # SQL Queries are better written with 'bad quotes'(sic)
    # e.g.:
    #     stmt = """
    #         UPDATE ShopSignups
    #         SET first_device_shipment_date = %s
    #         WHERE shop_id = %s AND first_device_shipment_date IS NULL
    #     """
    Q001,
