From 06ba3cb37d1a3f5b8a2a8a677bf9f2d9bb89602c Mon Sep 17 00:00:00 2001 From: Lois Rilo Date: Mon, 7 Nov 2022 13:34:57 +0100 Subject: [PATCH 1/4] [UPD] repo template --- .copier-answers.yml | 7 ++++++- .gitignore | 1 - .pre-commit-config.yaml | 12 ++++-------- .pylintrc | 3 +++ .pylintrc-mandatory | 2 ++ 5 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.copier-answers.yml b/.copier-answers.yml index 13e1973a..bb224b2c 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,9 +1,14 @@ # Do NOT update manually; changes here will be overwritten by Copier -_commit: v1.6.1 +_commit: v1.11.0 _src_path: https://github.com/OCA/oca-addons-repo-template.git ci: GitHub dependency_installation_mode: PIP generate_requirements_txt: false +github_check_license: true +github_enable_codecov: true +github_enable_makepot: true +github_enable_stale_action: true +github_enforce_dev_status_compatibility: true include_wkhtmltopdf: true odoo_version: 15.0 org_name: ForgeFlow diff --git a/.gitignore b/.gitignore index 818770fb..9c283fd4 100644 --- a/.gitignore +++ b/.gitignore @@ -15,7 +15,6 @@ build/ develop-eggs/ dist/ eggs/ -lib/ lib64/ parts/ sdist/ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b8360f85..0d016e4c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -113,19 +113,15 @@ repos: - id: flake8 name: flake8 additional_dependencies: ["flake8-bugbear==21.9.2"] - - repo: https://github.com/PyCQA/pylint - rev: v2.11.1 + - repo: https://github.com/OCA/pylint-odoo + rev: 7.0.2 hooks: - - id: pylint + - id: pylint_odoo name: pylint with optional checks args: - --rcfile=.pylintrc - --exit-zero verbose: true - additional_dependencies: &pylint_deps - - pylint-odoo==5.0.5 - - id: pylint - name: pylint with mandatory checks + - id: pylint_odoo args: - --rcfile=.pylintrc-mandatory - additional_dependencies: *pylint_deps diff --git a/.pylintrc b/.pylintrc index edce5cad..0c7c8929 100644 --- a/.pylintrc +++ b/.pylintrc @@ -1,3 +1,5 @@ + + [MASTER] load-plugins=pylint_odoo score=n @@ -39,6 +41,7 @@ enable=anomalous-backslash-in-string, license-allowed, manifest-author-string, manifest-deprecated-key, + manifest-required-author, manifest-required-key, manifest-version-format, method-compute, diff --git a/.pylintrc-mandatory b/.pylintrc-mandatory index ea7294ea..9a55fc60 100644 --- a/.pylintrc-mandatory +++ b/.pylintrc-mandatory @@ -1,3 +1,4 @@ + [MASTER] load-plugins=pylint_odoo score=n @@ -32,6 +33,7 @@ enable=anomalous-backslash-in-string, license-allowed, manifest-author-string, manifest-deprecated-key, + manifest-required-author, manifest-required-key, manifest-version-format, method-compute, From da93237b466164d4499d529a5aed5c0b33245288 Mon Sep 17 00:00:00 2001 From: Lois Rilo Date: Mon, 7 Nov 2022 13:37:00 +0100 Subject: [PATCH 2/4] [FIX] rma_purchase: fix author in manifest OCA was added in the past by mistake only because a misconfiguration in the CI forced OCA as a required author. --- rma_purchase/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rma_purchase/__manifest__.py b/rma_purchase/__manifest__.py index 153e14d6..bd5ec669 100644 --- a/rma_purchase/__manifest__.py +++ b/rma_purchase/__manifest__.py @@ -6,7 +6,7 @@ "category": "RMA", "summary": "RMA from PO", "license": "LGPL-3", - "author": "ForgeFlow, Odoo Community Association (OCA)", + "author": "ForgeFlow", "website": "https://github.com/ForgeFlow/stock-rma", "depends": ["rma_account", "purchase"], "data": [ From e1e3f500803779835844e23b7972faa9242a5352 Mon Sep 17 00:00:00 2001 From: Lois Rilo Date: Mon, 7 Nov 2022 13:38:01 +0100 Subject: [PATCH 3/4] [FIX] rma_sale: fix author in manifest OCA was added in the past by mistake only because a misconfiguration in the CI forced OCA as a required author. --- rma_sale/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rma_sale/__manifest__.py b/rma_sale/__manifest__.py index 39e7cf36..19b47ce1 100644 --- a/rma_sale/__manifest__.py +++ b/rma_sale/__manifest__.py @@ -7,7 +7,7 @@ "license": "LGPL-3", "category": "RMA", "summary": "Links RMA with Sales Orders", - "author": "ForgeFlow, Odoo Community Association (OCA)", + "author": "ForgeFlow", "website": "https://github.com/ForgeFlow/stock-rma", "depends": ["rma_account", "sale_stock"], "data": [ From 32c0521dcc205deca058907aaa0bd82d0af5ea17 Mon Sep 17 00:00:00 2001 From: Lois Rilo Date: Mon, 7 Nov 2022 13:38:24 +0100 Subject: [PATCH 4/4] [FIX] rma_repair: fix author in manifest OCA was added in the past by mistake only because a misconfiguration in the CI forced OCA as a required author. --- rma_repair/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rma_repair/__manifest__.py b/rma_repair/__manifest__.py index a63ea83e..fdc8ad43 100644 --- a/rma_repair/__manifest__.py +++ b/rma_repair/__manifest__.py @@ -6,7 +6,7 @@ "license": "AGPL-3", "category": "RMA", "summary": "Links RMA with Repairs.", - "author": "ForgeFlow S.L., Odoo Community Association (OCA)", + "author": "ForgeFlow", "website": "https://github.com/ForgeFlow/stock-rma", "depends": ["rma_account", "repair_refurbish"], "data": [