[flake8]
ignore =
    E265, # block comment should start with '# '
    E266, # too many leading '#' for block comment
    E402, # module level import not at top of file
    E711, # comparison to None should be 'if cond is None:'
    E712, # comparison to False should be 'if cond is False:' or 'if not cond:'
    E713, # test for membership should be 'not in'
    E722, # do not use bare 'except'
    E731, # do not assign a lambda expression, use a def
    E741, # ambiguous variable name 'l'
    F401, # 'grass.script.core.gisenv' imported but unused
    F632, # use ==/!= to compare str, bytes, and int literals
    F821, # undefined name '_'
    F841, # local variable 'center' is assigned to but never used
    E111, # indentation is not a multiple of four
    E711, # comparison to None should be 'if cond is None:'
    F632, # use ==/!= to compare str, bytes, and int literals
    W391, # blank line at end of file
    E111, # indentation is not a multiple of four
    E121, # continuation line under-indented for hanging indent
    E125, # continuation line with same indent as next logical line
    E127, # continuation line over-indented for visual indent
    E128, # continuation line under-indented for visual indent
    E202, # whitespace before ')'
    E211, # whitespace before '['
    E221, # multiple spaces before operator
    E225, # missing whitespace around operator
    E226, # missing whitespace around arithmetic operator
    E231, # missing whitespace after ','
    E251, # unexpected spaces around keyword / parameter equals
    E261, # at least two spaces before inline comment
    E271, # multiple spaces after keyword
    E272, # multiple spaces before keyword
    E302, # expected 2 blank lines, found 1
    E303, # too many blank lines (2)
    E305, # expected 2 blank lines after class or function definition, found 1
    E501, # line too long (161 > 150 characters)
    W293, # blank line contains whitespace
    W391, # blank line at end of file
    W503, # line break before binary operator
    W504, # line break after binary operator
    E121, # continuation line under-indented for hanging indent
    E221, # multiple spaces before operator
    E251, # unexpected spaces around keyword / parameter equals

max-line-length = 88
exclude =
    .git,
    __pycache__,
    .env,
    .venv,
    env,
    venv,
    ENV,
    env.bak,
    venv.bak,
    ctypes,
    pydispatch,
    testsuite,
