[flake8]
max-line-length = 119
jobs = 0
# B = bugbear
# B9 = bugbear opinionated (incl line length +10% tolerance)
select = C,E,F,W,B,B9
ignore =
    E203  # whitespace before ':' (black behaviour)
    E501  # E501: flake8 line length (covered by bugbear B950)
    W503  # W503: line break before binary operator (black behaviour)
    W504  # W504: line break after binary operator (black behaviour?)
    E241  # E241: E241 multiple spaces after ',' (Better autofixing)
    B023  # B023: Function definition does not bind loop variable 'item'. (Odoo needs it [self.filtered(lambda l: l.item_id == item) for item in items])
    E226  # E226: missing whitespace around arithmetic operator (Better autofixing)
    B904  # B904: Within an `except` clause, raise exceptions with `raise (It is valid for us)
    E123  # E123: closing bracket does not match indentation of opening bracket's line (Better autofixing)
    E275  # E275: missing whitespace after keyword (Better autofixing)
# F401: imported but unused (like __init__ already works)
per-file-ignores =
    __init__.py:F401
