diff --git a/.copier-answers.yml b/.copier-answers.yml index 6a4772d..caa56a2 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,14 +1,17 @@ # Do NOT update manually; changes here will be overwritten by Copier -_commit: v1.2 +_commit: v2.2 _src_path: https://picasso.noviat.com/ci/addons-repo-template.git ci_exclude_modules: account_asset -ci_image: ghcr.io/oca/oca-ci/py3.10-odoo16.0:latest +ci_image: ghcr.io/oca/oca-ci/py3.10-odoo17.0:latest customer_slug: Noviat_Generic +generate_requirements_txt: true odoo_enterprise: 1 -odoo_version: 16.0 +odoo_version: 17.0 org_name: Noviat org_slug: Noviat repo_name: Modules dedicated to manage the EBICS protocol repo_slug: accounting-ebics repo_website: https://www.noviat.com/ +use_pyproject_toml: false +use_ruff: false diff --git a/.eslintrc.yml b/.eslintrc.yml index 9429bc6..fed88d7 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -22,6 +22,7 @@ globals: odoo: readonly openerp: readonly owl: readonly + luxon: readonly # Styling is handled by Prettier, so we only need to enable AST rules; # see https://github.com/OCA/maintainer-quality-tools/pull/618#issuecomment-558576890 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9d59cd2..2dc110f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,9 +4,9 @@ include: file: "/odoo-tests.template.yml" variables: - ODOO_CI_IMAGE: ghcr.io/oca/oca-ci/py3.10-odoo16.0:latest - VERSION: "16.0" - ODOO_BRANCH: "16.0" + ODOO_CI_IMAGE: ghcr.io/oca/oca-ci/py3.10-odoo17.0:latest + VERSION: "17.0" + ODOO_BRANCH: "17.0" ENTERPRISE: "1" ODOO_PRECOMMIT: "1" ODOO_TEST: "1" diff --git a/.isort.cfg b/.isort.cfg index 0ec187e..e9ca60f 100644 --- a/.isort.cfg +++ b/.isort.cfg @@ -10,4 +10,4 @@ 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 +ensure_newline_before_comments = True \ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e764a7d..bb1870f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,10 +12,12 @@ exclude: | /static/(src/)?lib/| # Repos using Sphinx to generate docs don't need prettying ^docs/_templates/.*\.html$| + # Don't bother non-technical authors with formatting issues in docs + readme/.*\.(rst|md)$| + # Ignore build and dist directories in addons + /build/|/dist/| # You don't usually want a bot to modify your legal texts (LICENSE.*|COPYING.*) - # Exclude the TODO folders - /TODO/ default_language_version: python: python3 node: "16.17.0" @@ -35,12 +37,17 @@ repos: language: fail files: '[a-zA-Z0-9_]*/i18n/en\.po$' - repo: https://github.com/oca/maintainer-tools - rev: 4cd2b852214dead80822e93e6749b16f2785b2fe + rev: 9a170331575a265c092ee6b24b845ec508e8ef75 hooks: # update the NOT INSTALLABLE ADDONS section above - id: oca-update-pre-commit-excluded-addons - id: oca-fix-manifest-website args: ["https://www.noviat.com/"] + - repo: https://github.com/OCA/odoo-pre-commit-hooks + rev: v0.0.25 + hooks: + - id: oca-checks-odoo-module + - id: oca-checks-po - repo: https://github.com/myint/autoflake rev: v1.6.1 hooks: @@ -127,7 +134,7 @@ repos: name: flake8 additional_dependencies: ["flake8-bugbear==21.9.2"] - repo: https://github.com/OCA/pylint-odoo - rev: 7.0.2 + rev: v9.0.4 hooks: - id: pylint_odoo name: pylint with optional checks diff --git a/.pylintrc b/.pylintrc index 23f1538..05683e8 100644 --- a/.pylintrc +++ b/.pylintrc @@ -10,7 +10,7 @@ manifest_required_authors=Noviat 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=16.0 +valid_odoo_versions=17.0 [MESSAGES CONTROL] disable=all @@ -41,7 +41,7 @@ enable=anomalous-backslash-in-string, license-allowed, manifest-author-string, manifest-deprecated-key, - manifest-required-author, + # manifest-required-author, manifest-required-key, manifest-version-format, method-compute, @@ -108,7 +108,7 @@ enable=anomalous-backslash-in-string, invalid-commit, missing-manifest-dependency, missing-newline-extrafiles, - missing-readme, + # missing-readme, no-utf8-coding-comment, odoo-addons-relative-import, old-api7-method-defined, diff --git a/.pylintrc-mandatory b/.pylintrc-mandatory index ff303a4..177c770 100644 --- a/.pylintrc-mandatory +++ b/.pylintrc-mandatory @@ -9,7 +9,7 @@ manifest_required_authors=Noviat 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=16.0 +valid_odoo_versions=17.0 [MESSAGES CONTROL] disable=all @@ -33,7 +33,7 @@ enable=anomalous-backslash-in-string, license-allowed, manifest-author-string, manifest-deprecated-key, - manifest-required-author, + # manifest-required-author, manifest-required-key, manifest-version-format, method-compute, diff --git a/README.md b/README.md index cdc75cc..d9bbc05 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -[![pipeline status](https://picasso.noviat.com/Noviat/Noviat_Generic/accounting-ebics/badges/16.0/pipeline.svg)](https://picasso.noviat.com/Noviat/Noviat_Generic/accounting-ebics/-/commits/16.0) -[![coverage report](https://picasso.noviat.com/Noviat/Noviat_Generic/accounting-ebics/badges/16.0/coverage.svg)](https://picasso.noviat.com/Noviat/Noviat_Generic/accounting-ebics/-/commits/16.0) +[![pipeline status](https://picasso.noviat.com/Noviat/Noviat_Generic/accounting-ebics/badges/17.0/pipeline.svg)](https://picasso.noviat.com/Noviat/Noviat_Generic/accounting-ebics/-/commits/17.0) +[![coverage report](https://picasso.noviat.com/Noviat/Noviat_Generic/accounting-ebics/badges/17.0/coverage.svg)](http://noviat.picasso-pages.noviat.com/Noviat_Generic/accounting-ebics) diff --git a/requirements.txt b/requirements.txt index 6c420f9..9cd1629 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1 @@ # generated from manifests external_dependencies -cryptography -fintech diff --git a/test-requirements.txt b/test-requirements.txt index bdbd82c..3626b17 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1 +1,3 @@ +odoo-addon-module_change_auto_install +openupgradelib cryptography<37