Skip to content

Commit

Permalink
[IMP] flake8, isort: add specific configuration and not depend of oca…
Browse files Browse the repository at this point in the history
…-addons-repo-template

- because into oca-addons-repo-template now use ruff and this files are delete on commit, see PR OCA/oca-addons-repo-template#219
OCA/oca-addons-repo-template@299cb36
  • Loading branch information
celm1990 committed Nov 13, 2023
1 parent f644e66 commit ef0d3d0
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .flake8.jinja
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
{%- include "vendor/oca-addons-repo-template/.flake8" -%}
[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 behaviour)
# E501: flake8 line length (covered by bugbear B950)
# W503: line break before binary operator (black behaviour)
ignore = E203,E501,W503
14 changes: 13 additions & 1 deletion .isort.cfg.jinja
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
{%- include "vendor/oca-addons-repo-template/.isort.cfg" -%}
[settings]
; see https://github.com/psf/black
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
combine_as_imports=True
use_parentheses=True
line_length=88
known_odoo=odoo
known_odoo_addons=odoo.addons
sections=FUTURE,STDLIB,THIRDPARTY,ODOO,ODOO_ADDONS,FIRSTPARTY,LOCALFOLDER
default_section=THIRDPARTY
ensure_newline_before_comments = True

0 comments on commit ef0d3d0

Please sign in to comment.