-
-
Notifications
You must be signed in to change notification settings - Fork 441
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
51 changed files
with
1,634 additions
and
1,498 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[flake8] | ||
max-line-length = 80 | ||
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 | ||
exclude = | ||
./.git | ||
./src | ||
./venv* | ||
.eggs/ |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[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_third_party =dateutil,mock,odoo,psycopg2,requests,setuptools |
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
exclude: "^(setup/)|.pot$|.po$|README.rst" | ||
repos: | ||
- repo: https://github.com/ambv/black | ||
rev: 19.3b0 | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.3.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: debug-statements | ||
- id: flake8 | ||
name: flake8 except __init__.py | ||
args: [--exclude=__init__.py] | ||
additional_dependencies: ["flake8-bugbear == 18.8.0"] | ||
language_version: python3 | ||
- id: flake8 | ||
name: flake8 only __init__.py | ||
args: [--ignore=E501 F401] # ignore imported unused in __init__.py | ||
files: __init__.py | ||
language_version: python3 | ||
- repo: https://github.com/pre-commit/mirrors-pylint | ||
rev: v2.3.1 | ||
hooks: | ||
- id: pylint | ||
name: pylint odoo | ||
additional_dependencies: [pylint-odoo==3.0.3] | ||
language_version: python3 | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v1.24.0 | ||
hooks: | ||
- id: pyupgrade | ||
language_version: python3 | ||
- repo: https://github.com/asottile/seed-isort-config | ||
rev: v1.3.0 | ||
hooks: | ||
- id: seed-isort-config | ||
language_version: python3 | ||
- repo: https://github.com/pre-commit/mirrors-isort | ||
rev: v4.3.4 | ||
hooks: | ||
- id: isort | ||
language_version: python3 |
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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
[MASTER] | ||
profile=no | ||
ignore=CVS,.git,scenarios,.bzr | ||
persistent=yes | ||
cache-size=500 | ||
load-plugins=pylint_odoo | ||
|
||
[ODOOLINT] | ||
readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" | ||
manifest_required_authors=Odoo Community Association (OCA) | ||
manifest_required_keys=license | ||
manifest_deprecated_keys=description,active | ||
license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 | ||
valid_odoo_versions=12.0 | ||
|
||
[MESSAGES CONTROL] | ||
disable=all | ||
|
||
enable=anomalous-backslash-in-string, | ||
assignment-from-none, | ||
dangerous-default-value, | ||
duplicate-key, | ||
eval-referenced, | ||
eval-used, | ||
license-allowed, | ||
manifest-author-string, | ||
manifest-required-author, | ||
manifest-required-key, | ||
manifest-version-format, | ||
missing-import-error, | ||
missing-manifest-dependency, | ||
pointless-statement, | ||
pointless-string-statement, | ||
print-used, | ||
redundant-keyword-arg, | ||
reimported, | ||
relative-import, | ||
return-in-init, | ||
rst-syntax-error, | ||
too-few-format-args, | ||
unreachable | ||
|
||
[REPORTS] | ||
msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg} | ||
output-format=colorized | ||
files-output=no | ||
reports=no | ||
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10) | ||
comment=no | ||
|
||
[FORMAT] | ||
indent-string=' ' | ||
|
||
[SIMILARITIES] | ||
ignore-comments=yes | ||
ignore-docstrings=yes | ||
|
||
[MISCELLANEOUS] | ||
notes= | ||
|
||
[IMPORTS] | ||
deprecated-modules=pdb,pudb,ipdb,openerp.osv |
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
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
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
Oops, something went wrong.