Merge branch '16.0-ci_config' into '16.0'

add CI config

See merge request Noviat/Noviat_Generic/accounting-ebics!3
This commit is contained in:
Jeremy Didderen 2023-08-13 16:25:57 +00:00
commit 8d1baefe40
14 changed files with 70 additions and 60 deletions

View File

@ -1,23 +1,14 @@
# Do NOT update manually; changes here will be overwritten by Copier
_commit: v1.11.0
_src_path: gh:oca/oca-addons-repo-template
ci: GitHub
dependency_installation_mode: PIP
generate_requirements_txt: false
github_check_license: false
github_enable_codecov: false
github_enable_makepot: false
github_enable_stale_action: false
github_enforce_dev_status_compatibility: false
include_wkhtmltopdf: false
_commit: v1.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
customer_slug: Noviat_Generic
odoo_enterprise: 1
odoo_version: 16.0
org_name: Noviat
org_slug: Noviat
rebel_module_groups: []
repo_description: 'EBICS support for Odoo'
repo_name: account_ebics
repo_slug: account_ebics
repo_website: https://www.noviat.com
travis_apt_packages: []
travis_apt_sources: []
repo_name: Modules dedicated to manage the EBICS protocol
repo_slug: accounting-ebics
repo_website: https://www.noviat.com/

3
.gitignore vendored
View File

@ -69,6 +69,3 @@ docs/_build/
# Backup files
*~
*.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:
- project: "ci/gitlab-ci-templates"
ref: master
- project: "ci/gitlabci-odoo"
ref: main
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"
ENTERPRISE: "1"
ODOO_PRECOMMIT: "1"
ODOO_LINT: "0"
ODOO_TEST: "0"
ODOO_TEST: "1"
EXCLUDE_MODULES: "account_asset"

View File

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

View File

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

View File

@ -1,5 +1,4 @@
[MASTER]
# Add files or directories matching the regex patterns to the blacklist.
ignore-patterns=["^.*/TODO/.*$"]
load-plugins=pylint_odoo
score=n
@ -74,7 +73,7 @@ enable=anomalous-backslash-in-string,
invalid-commit,
manifest-maintainers-list,
missing-newline-extrafiles,
missing-readme,
# missing-readme,
missing-return,
odoo-addons-relative-import,
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",
"license": "LGPL-3",
"author": "Noviat",
"website": "https://www.noviat.com",
"website": "https://www.noviat.com/",
"category": "Accounting & Finance",
"depends": ["account"],
"data": [

View File

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

View File

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

View File

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

View File

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

View File

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

1
test-requirements.txt Normal file
View File

@ -0,0 +1 @@
cryptography<37