Skip to content

Commit

Permalink
[REF] cfg: (flake8) disable B905,B907 and make E741 optional
Browse files Browse the repository at this point in the history
  • Loading branch information
antonag32 committed Oct 19, 2023
1 parent 00c28d3 commit 137a861
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/pre_commit_vauxoo/cfg/.flake8
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion src/pre_commit_vauxoo/cfg/.flake8-optional
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 137a861

Please sign in to comment.