[flake8]
filename = uefi_support/*.py,uefi_support/*.pyi
max-line-length = 90
accept-encodings = utf-8
mypy_config = mypy.ini

# In the pyi files ignore ... on same line, and some keywords shadowing.
per-file-ignores =
    uefi_support/*.pyi:E704,A003

# Errors to ignore.
ignore = CCR001,E265,E302,E305,E501,W503

# CCR001 Cognitive complexity is too high (27 > 7)
# E265 block comment should start with '# '
# E302 expected 2 blank lines, found 1
# E241 multiple spaces after ','
# E202 whitespace before ')'
# E221 multiple spaces before operator
# E305 expected 2 blank lines after class or function definition, found 1
# E501 line too long (91 > 90 characters)
# W503 line break before binary operator
