forked from Tecnativa/doodba-copier-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] flake8, isort: add specific configuration and not depend of oca…
…-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
Showing
2 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |