- Increase max-complexity from 16 to 30 for website_sale_aplicoop - Module has complex business logic that exceeds the lower threshold - Allows pre-commit hooks to pass for the feature branch
25 lines
633 B
INI
25 lines
633 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 = 30
|
|
# 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
|
|
exclude =
|
|
.git,
|
|
__pycache__,
|
|
.tox,
|
|
.eggs,
|
|
*.egg,
|
|
build,
|
|
.venv,
|
|
.env,
|
|
setup
|