add CI config

This commit is contained in:
Jérémy Didderen 2023-08-13 17:51:31 +02:00
parent 8771b9e145
commit 106a7ee5db
13 changed files with 69 additions and 60 deletions

View File

@ -1,23 +1,14 @@
# Do NOT update manually; changes here will be overwritten by Copier # Do NOT update manually; changes here will be overwritten by Copier
_commit: v1.11.0 _commit: v1.2
_src_path: gh:oca/oca-addons-repo-template _src_path: https://picasso.noviat.com/ci/addons-repo-template.git
ci: GitHub ci_exclude_modules: account_asset
dependency_installation_mode: PIP ci_image: ghcr.io/oca/oca-ci/py3.10-odoo16.0:latest
generate_requirements_txt: false customer_slug: Noviat_Generic
github_check_license: false odoo_enterprise: 1
github_enable_codecov: false
github_enable_makepot: false
github_enable_stale_action: false
github_enforce_dev_status_compatibility: false
include_wkhtmltopdf: false
odoo_version: 16.0 odoo_version: 16.0
org_name: Noviat org_name: Noviat
org_slug: Noviat org_slug: Noviat
rebel_module_groups: [] repo_name: Modules dedicated to manage the EBICS protocol
repo_description: 'EBICS support for Odoo' repo_slug: accounting-ebics
repo_name: account_ebics repo_website: https://www.noviat.com/
repo_slug: account_ebics
repo_website: https://www.noviat.com
travis_apt_packages: []
travis_apt_sources: []

3
.gitignore vendored
View File

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

View File

@ -1,16 +1,13 @@
# Only run for (updates to) merge requests and the default branch.
workflow:
rules:
- if: $CI_MERGE_REQUEST_IID
- if: $CI_COMMIT_BRANCH == "16.0"
include: include:
- project: "ci/gitlab-ci-templates" - project: "ci/gitlabci-odoo"
ref: master ref: main
file: "/odoo-tests.template.yml" file: "/odoo-tests.template.yml"
variables: variables:
ODOO_CI_IMAGE: ghcr.io/oca/oca-ci/py3.10-odoo16.0:latest ODOO_CI_IMAGE: ghcr.io/oca/oca-ci/py3.10-odoo16.0:latest
VERSION: "16.0"
ODOO_BRANCH: "16.0"
ENTERPRISE: "1"
ODOO_PRECOMMIT: "1" ODOO_PRECOMMIT: "1"
ODOO_LINT: "0" ODOO_TEST: "1"
ODOO_TEST: "0" EXCLUDE_MODULES: "account_asset"

View File

@ -1,7 +1,6 @@
exclude: | exclude: |
(?x) (?x)
# NOT INSTALLABLE ADDONS # NOT INSTALLABLE ADDONS
^account_ebics_payment_order/|
# END NOT INSTALLABLE ADDONS # END NOT INSTALLABLE ADDONS
# Files and folders generated by bots, to avoid loops # Files and folders generated by bots, to avoid loops
^setup/|/static/description/index\.html$| ^setup/|/static/description/index\.html$|
@ -14,7 +13,7 @@ exclude: |
# Repos using Sphinx to generate docs don't need prettying # Repos using Sphinx to generate docs don't need prettying
^docs/_templates/.*\.html$| ^docs/_templates/.*\.html$|
# You don't usually want a bot to modify your legal texts # You don't usually want a bot to modify your legal texts
(LICENSE.*|COPYING.*)| (LICENSE.*|COPYING.*)
# Exclude the TODO folders # Exclude the TODO folders
/TODO/ /TODO/
default_language_version: default_language_version:
@ -30,15 +29,20 @@ repos:
entry: found forbidden files; remove them entry: found forbidden files; remove them
language: fail language: fail
files: "\\.rej$" files: "\\.rej$"
- id: en-po-files
name: en.po files cannot exist
entry: found a en.po file
language: fail
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
- repo: https://github.com/oca/maintainer-tools - repo: https://github.com/oca/maintainer-tools
rev: a17a3431379fc2affed9b0b99cdfbe232db6db4c rev: 4cd2b852214dead80822e93e6749b16f2785b2fe
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
- id: oca-fix-manifest-website - id: oca-fix-manifest-website
args: ["https://www.noviat.com"] args: ["https://www.noviat.com/"]
- repo: https://github.com/myint/autoflake - repo: https://github.com/myint/autoflake
rev: v1.7.7 rev: v1.6.1
hooks: hooks:
- id: autoflake - id: autoflake
args: args:
@ -49,23 +53,22 @@ repos:
- --remove-duplicate-keys - --remove-duplicate-keys
- --remove-unused-variables - --remove-unused-variables
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 22.10.0 rev: 22.8.0
hooks: hooks:
- id: black - id: black
additional_dependencies: ["click==8.0.4"]
- repo: https://github.com/pre-commit/mirrors-prettier - repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.4 rev: v2.7.1
hooks: hooks:
- id: prettier - id: prettier
name: prettier (with plugin-xml) name: prettier (with plugin-xml)
additional_dependencies: additional_dependencies:
- "prettier@2.4.1" - "prettier@2.7.1"
- "@prettier/plugin-xml@1.1.0" - "@prettier/plugin-xml@2.2.0"
args: args:
- --plugin=@prettier/plugin-xml - --plugin=@prettier/plugin-xml
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$ files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
- repo: https://github.com/pre-commit/mirrors-eslint - repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.26.0 rev: v8.24.0
hooks: hooks:
- id: eslint - id: eslint
verbose: true verbose: true
@ -95,12 +98,12 @@ repos:
- id: mixed-line-ending - id: mixed-line-ending
args: ["--fix=lf"] args: ["--fix=lf"]
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade
rev: v3.2.0 rev: v2.38.2
hooks: hooks:
- id: pyupgrade - id: pyupgrade
args: ["--keep-percent-format"] args: ["--keep-percent-format"]
- repo: https://github.com/PyCQA/isort - repo: https://github.com/PyCQA/isort
rev: 5.10.1 rev: 5.12.0
hooks: hooks:
- id: isort - id: isort
name: isort except __init__.py name: isort except __init__.py
@ -111,12 +114,18 @@ repos:
rev: 3.1.8 rev: 3.1.8
hooks: hooks:
- id: setuptools-odoo-make-default - id: setuptools-odoo-make-default
- id: setuptools-odoo-get-requirements
args:
- --output
- requirements.txt
- --header
- "# generated from manifests external_dependencies"
- repo: https://github.com/PyCQA/flake8 - repo: https://github.com/PyCQA/flake8
rev: 3.9.2 rev: 3.9.2
hooks: hooks:
- id: flake8 - id: flake8
name: flake8 name: flake8
additional_dependencies: ["flake8-bugbear==20.1.4"] additional_dependencies: ["flake8-bugbear==21.9.2"]
- repo: https://github.com/OCA/pylint-odoo - repo: https://github.com/OCA/pylint-odoo
rev: 7.0.2 rev: 7.0.2
hooks: hooks:

View File

@ -1,5 +1,5 @@
[MASTER] [MASTER]
# Add files or directories matching the regex patterns to the blacklist.
ignore-patterns=["^.*/TODO/.*$"] ignore-patterns=["^.*/TODO/.*$"]
load-plugins=pylint_odoo load-plugins=pylint_odoo
score=n score=n
@ -48,9 +48,8 @@ enable=anomalous-backslash-in-string,
method-inverse, method-inverse,
method-required-super, method-required-super,
method-search, method-search,
missing-import-error,
missing-manifest-dependency,
openerp-exception-warning, openerp-exception-warning,
pointless-statement,
pointless-string-statement, pointless-string-statement,
print-used, print-used,
redundant-keyword-arg, redundant-keyword-arg,
@ -82,7 +81,7 @@ enable=anomalous-backslash-in-string,
invalid-commit, invalid-commit,
manifest-maintainers-list, manifest-maintainers-list,
missing-newline-extrafiles, missing-newline-extrafiles,
missing-readme, # missing-readme,
missing-return, missing-return,
odoo-addons-relative-import, odoo-addons-relative-import,
old-api7-method-defined, old-api7-method-defined,
@ -109,7 +108,7 @@ enable=anomalous-backslash-in-string,
invalid-commit, invalid-commit,
missing-manifest-dependency, missing-manifest-dependency,
missing-newline-extrafiles, missing-newline-extrafiles,
# missing-readme, missing-readme,
no-utf8-coding-comment, no-utf8-coding-comment,
odoo-addons-relative-import, odoo-addons-relative-import,
old-api7-method-defined, old-api7-method-defined,

View File

@ -1,5 +1,4 @@
[MASTER] [MASTER]
# Add files or directories matching the regex patterns to the blacklist.
ignore-patterns=["^.*/TODO/.*$"] ignore-patterns=["^.*/TODO/.*$"]
load-plugins=pylint_odoo load-plugins=pylint_odoo
score=n score=n
@ -74,7 +73,7 @@ enable=anomalous-backslash-in-string,
invalid-commit, invalid-commit,
manifest-maintainers-list, manifest-maintainers-list,
missing-newline-extrafiles, missing-newline-extrafiles,
missing-readme, # missing-readme,
missing-return, missing-return,
odoo-addons-relative-import, odoo-addons-relative-import,
old-api7-method-defined, old-api7-method-defined,

View File

@ -1,3 +1,20 @@
EBICS support for Odoo [![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)
<!-- /!\ do not modify above this line -->
# Modules dedicated to manage the EBICS protocol
<!-- /!\ do not modify below this line -->
<!-- prettier-ignore-start -->
[//]: # (addons)
This part will be replaced when running the oca-gen-addons-table script from OCA/maintainer-tools.
[//]: # (end addons)
<!-- prettier-ignore-end -->
----

View File

@ -6,7 +6,7 @@
"version": "16.0.1.4.0", "version": "16.0.1.4.0",
"license": "LGPL-3", "license": "LGPL-3",
"author": "Noviat", "author": "Noviat",
"website": "https://www.noviat.com", "website": "https://www.noviat.com/",
"category": "Accounting & Finance", "category": "Accounting & Finance",
"depends": ["account"], "depends": ["account"],
"data": [ "data": [

View File

@ -6,7 +6,7 @@
"version": "16.0.1.0.0", "version": "16.0.1.0.0",
"license": "AGPL-3", "license": "AGPL-3",
"author": "Noviat", "author": "Noviat",
"website": "https://www.noviat.com", "website": "https://www.noviat.com/",
"category": "Accounting & Finance", "category": "Accounting & Finance",
"summary": "EBICS Files automated import and processing", "summary": "EBICS Files automated import and processing",
"depends": ["account_ebics"], "depends": ["account_ebics"],

View File

@ -6,7 +6,7 @@
"version": "16.0.1.0.0", "version": "16.0.1.0.0",
"license": "LGPL-3", "license": "LGPL-3",
"author": "Noviat", "author": "Noviat",
"website": "https://www.noviat.com", "website": "https://www.noviat.com/",
"category": "Accounting & Finance", "category": "Accounting & Finance",
"depends": ["account_ebics", "account_batch_payment"], "depends": ["account_ebics", "account_batch_payment"],
"data": ["views/account_batch_payment_views.xml"], "data": ["views/account_batch_payment_views.xml"],

View File

@ -6,7 +6,7 @@
"summary": "Use OCA Bank Statement Import with account_ebics", "summary": "Use OCA Bank Statement Import with account_ebics",
"version": "16.0.1.0.0", "version": "16.0.1.0.0",
"author": "Noviat", "author": "Noviat",
"website": "https://www.noviat.com", "website": "https://www.noviat.com/",
"category": "Hidden", "category": "Hidden",
"license": "LGPL-3", "license": "LGPL-3",
"depends": [ "depends": [

View File

@ -6,7 +6,7 @@
"summary": "Deploy account_ebics module on Odoo Enterprise", "summary": "Deploy account_ebics module on Odoo Enterprise",
"version": "16.0.1.0.0", "version": "16.0.1.0.0",
"author": "Noviat", "author": "Noviat",
"website": "https://www.noviat.com", "website": "https://www.noviat.com/",
"category": "Hidden", "category": "Hidden",
"license": "LGPL-3", "license": "LGPL-3",
"depends": [ "depends": [

View File

@ -6,7 +6,7 @@
"version": "16.0.1.0.0", "version": "16.0.1.0.0",
"license": "LGPL-3", "license": "LGPL-3",
"author": "Noviat", "author": "Noviat",
"website": "https://www.noviat.com", "website": "https://www.noviat.com/",
"category": "Accounting & Finance", "category": "Accounting & Finance",
"depends": ["account_ebics", "account_payment_order"], "depends": ["account_ebics", "account_payment_order"],
"data": [ "data": [