addons-cm/.flake8

31 lines
883 B
INI

# See https://github.com/OCA/maintainer-tools/issues/38
# E123, E133, E226, E241, E242 are ignored by default
# E203 for black (whitespace before : in slice)
[flake8]
max-line-length = 88
max-complexity = 16
# B = bugbear
# B9 = bugbear opinionated (incl line length)
select = C,E,F,W,B,B9
# E203: whitespace before ':' (black-compatible)
# E501: line too long (black-compatible)
# W503: line break before binary operator (black-compatible)
# B950: line too long (soft limit, complements B)
ignore = E203,E501,W503,B950
# OCA standard per-file ignores:
# - __init__.py imports submodules that are intentionally "unused" (F401)
# - __manifest__.py is a bare dict literal, not a useless expression (B018)
per-file-ignores =
__init__.py: F401
__manifest__.py: B018
exclude =
.git,
__pycache__,
.tox,
.eggs,
*.egg,
build,
.venv,
.env,
setup