update CI config

This commit is contained in:
Jérémy Didderen 2024-01-28 14:24:18 +01:00 committed by Luc De Meyer
parent 56e12cdfc1
commit 10d6e3b5c7
11 changed files with 26 additions and 35 deletions

View File

@ -1,17 +1,12 @@
# Do NOT update manually; changes here will be overwritten by Copier # Do NOT update manually; changes here will be overwritten by Copier
_commit: v2.2 _commit: v3.1
_src_path: https://picasso.noviat.com/ci/addons-repo-template.git _src_path: https://picasso.noviat.com/ci/addons-repo-template.git
ci_exclude_modules: account_asset ci_exclude_modules: account_asset
ci_image: ghcr.io/oca/oca-ci/py3.10-odoo17.0:latest
customer_slug: Noviat_Generic customer_slug: Noviat_Generic
generate_requirements_txt: true
odoo_enterprise: 1 odoo_enterprise: 1
odoo_version: 17.0 odoo_version: 17.0
org_name: Noviat
org_slug: Noviat org_slug: Noviat
repo_name: Modules dedicated to manage the EBICS protocol repo_name: Modules dedicated to manage the EBICS protocol
repo_slug: accounting-ebics repo_slug: accounting-ebics
repo_website: https://www.noviat.com/ repo_type: Customer/Generic Addons
use_pyproject_toml: false
use_ruff: false

12
.flake8
View File

@ -1,12 +0,0 @@
[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
per-file-ignores=
__init__.py:F401

3
.gitignore vendored
View File

@ -70,6 +70,3 @@ docs/_build/
# Backup files # Backup files
*~ *~
*.swp *.swp
# OCA rules
!static/lib/

View File

@ -10,4 +10,5 @@ variables:
ENTERPRISE: "1" ENTERPRISE: "1"
ODOO_PRECOMMIT: "1" ODOO_PRECOMMIT: "1"
ODOO_TEST: "1" ODOO_TEST: "1"
ODOO_GENERATE_POT: "1"
EXCLUDE_MODULES: "account_asset" EXCLUDE_MODULES: "account_asset"

View File

@ -41,7 +41,7 @@ repos:
hooks: hooks:
- id: whool-init - id: whool-init
- repo: https://github.com/oca/maintainer-tools - repo: https://github.com/oca/maintainer-tools
rev: f71041f22b8cd68cf7c77b73a14ca8d8cd190a60 rev: 9a170331575a265c092ee6b24b845ec508e8ef75
hooks: hooks:
# update the NOT INSTALLABLE ADDONS section above # update the NOT INSTALLABLE ADDONS section above
- id: oca-update-pre-commit-excluded-addons - id: oca-update-pre-commit-excluded-addons
@ -101,7 +101,7 @@ repos:
args: [--fix, --exit-non-zero-on-fix] args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format - id: ruff-format
- repo: https://github.com/OCA/pylint-odoo - repo: https://github.com/OCA/pylint-odoo
rev: v8.0.19 rev: v9.0.4
hooks: hooks:
- id: pylint_odoo - id: pylint_odoo
name: pylint with optional checks name: pylint with optional checks

View File

@ -1,5 +1,4 @@
[MASTER] [MASTER]
ignore-patterns=["^.*/TODO/.*$"] ignore-patterns=["^.*/TODO/.*$"]
load-plugins=pylint_odoo load-plugins=pylint_odoo
@ -42,7 +41,7 @@ enable=anomalous-backslash-in-string,
license-allowed, license-allowed,
manifest-author-string, manifest-author-string,
manifest-deprecated-key, manifest-deprecated-key,
manifest-required-author, # manifest-required-author,
manifest-required-key, manifest-required-key,
manifest-version-format, manifest-version-format,
method-compute, method-compute,

View File

@ -1,11 +1,11 @@
[MASTER] [MASTER]
ignore-patterns=["^.*/TODO/.*$"]
load-plugins=pylint_odoo load-plugins=pylint_odoo
score=n score=n
[ODOOLINT] [ODOOLINT]
readme-template-url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" #readme-template-url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst"
manifest-required-authors=Odoo Community Association (OCA) manifest-required-authors=Noviat
manifest-required-keys=license manifest-required-keys=license
manifest-deprecated-keys=description,active 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 license-allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3
@ -33,7 +33,7 @@ enable=anomalous-backslash-in-string,
license-allowed, license-allowed,
manifest-author-string, manifest-author-string,
manifest-deprecated-key, manifest-deprecated-key,
manifest-required-author, # manifest-required-author,
manifest-required-key, manifest-required-key,
manifest-version-format, manifest-version-format,
method-compute, method-compute,

View File

@ -6,6 +6,7 @@ fix = true
extend-select = [ extend-select = [
"B", "B",
"C90", "C90",
"E501", # line too long (default 88)
"I", # isort "I", # isort
"UP", # pyupgrade "UP", # pyupgrade
] ]

View File

@ -148,7 +148,7 @@ class EbicsConfig(models.Model):
ok = False ok = False
if not ok: if not ok:
raise UserError( raise UserError(
_( _( # pylint: disable=W8120
"Order Number should comply with the following pattern:" "Order Number should comply with the following pattern:"
"\n[A-Z]{1}[A-Z0-9]{3}" "\n[A-Z]{1}[A-Z0-9]{3}"
) )

View File

@ -1,4 +1,4 @@
# Copyright 2009-2023 Noviat. # Copyright 2009-2024 Noviat.
# License LGPL-3 or later (http://www.gnu.org/licenses/lgpl). # License LGPL-3 or later (http://www.gnu.org/licenses/lgpl).
import base64 import base64
@ -168,8 +168,8 @@ class EbicsFile(models.Model):
if raise_if_not_found: if raise_if_not_found:
raise UserError( raise UserError(
_( _(
"The module to process the '%(ebics_format)s' format is not installed " "The module to process the '%(ebics_format)s' format is not "
"on your system. " "installed on your system. "
"\nPlease install module '%(module)s'", "\nPlease install module '%(module)s'",
ebics_format=self.format_id.name, ebics_format=self.format_id.name,
module=module, module=module,

10
oca_dependencies.txt Normal file
View File

@ -0,0 +1,10 @@
# See https://github.com/OCA/maintainer-quality-tools/blob/master/travis/clone_oca_dependencies
# The expected format for oca_dependencies.txt:
# * comment lines start with # and are ignored
# * a dependency line contains:
# - the name of the OCA project
# - (optional) the URL to the git repository (defaulting to the OCA repository)
# - (optional) the name of the branch to use (defaulting to ${VERSION}). It is
# required if you want to select a commit SHA in the next parameter.
# - (optional) the commit SHA1 to use. If you set this option you MUST specify
# the branch