diff --git a/src/pre_commit_vauxoo/cfg/.flake8 b/src/pre_commit_vauxoo/cfg/.flake8 index 31dcc7d..524c626 100644 --- a/src/pre_commit_vauxoo/cfg/.flake8 +++ b/src/pre_commit_vauxoo/cfg/.flake8 @@ -5,8 +5,9 @@ # W503 changed by W504 and OCA prefers allow both # F401 is legal in odoo __init__.py files # E203 (whitespace before ':') is handled by black and it doesn't consider black syntax like: +# E741 do not use variables named ‘l’, ‘O’, or ‘I’ # chunk = records[index : index + chunk_size] -ignore = E123,E133,E203,E226,E241,E242,F811,F601,W503,W504 +ignore = E123,E133,E203,E226,E241,E242,E741,F811,F601,W503,W504 max-line-length = 119 per-file-ignores= __init__.py:F401 diff --git a/src/pre_commit_vauxoo/cfg/.flake8-optional b/src/pre_commit_vauxoo/cfg/.flake8-optional index 1051fc0..39eab33 100644 --- a/src/pre_commit_vauxoo/cfg/.flake8-optional +++ b/src/pre_commit_vauxoo/cfg/.flake8-optional @@ -14,8 +14,10 @@ select = C,E,F,W,B,B9 # B904: Within an `except` clause, raise exceptions with `raise (It is valid for us) # E123: closing bracket does not match indentation of opening bracket's line (Better autofixing) # E275: missing whitespace after keyword (Better autofixing) +# B905: zip(strict=True) only works in python >= 3.10 +# B907: We sometimes quote for stylistic purposes # F401: imported but unused (like __init__ already works) -ignore = E203,E501,W503,W504,E241,B023,E226,B904,E123,E275 +ignore = E203,E501,W503,W504,E241,B023,E226,B904,B905,B907,E123,E275 per-file-ignores = __init__.py:F401 __manifest__.py:B018