From 02b67c2bbdb73bbf2460e7c950b74dc912cc3f9d Mon Sep 17 00:00:00 2001 From: Jordi Ballester Alomar Date: Mon, 28 Nov 2022 15:45:30 +0100 Subject: [PATCH] init repo --- .copier-answers.yml | 2 +- .github/workflows/pre-commit.yml | 6 +++--- .github/workflows/test.yml | 12 ++++++------ .pre-commit-config.yaml | 22 +++++++++++----------- .pylintrc | 3 ++- .pylintrc-mandatory | 5 +++-- README.md | 8 ++++---- 7 files changed, 30 insertions(+), 28 deletions(-) diff --git a/.copier-answers.yml b/.copier-answers.yml index 72b93d4a..b4e6415a 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -10,7 +10,7 @@ github_enable_makepot: true github_enable_stale_action: true github_enforce_dev_status_compatibility: true include_wkhtmltopdf: true -odoo_version: 15.0 +odoo_version: 16.0 org_name: ForgeFlow org_slug: ForgeFlow rebel_module_groups: [] diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 9b5d86c2..a2c9e249 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -3,11 +3,11 @@ name: pre-commit on: pull_request: branches: - - "15.0*" + - "16.0*" push: branches: - - "15.0" - - "15.0-ocabot-*" + - "16.0" + - "16.0-ocabot-*" jobs: pre-commit: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5d34b1fa..64972cc2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,11 +3,11 @@ name: tests on: pull_request: branches: - - "15.0*" + - "16.0*" push: branches: - - "15.0" - - "15.0-ocabot-*" + - "16.0" + - "16.0-ocabot-*" jobs: unreleased-deps: @@ -35,14 +35,14 @@ jobs: fail-fast: false matrix: include: - - container: ghcr.io/oca/oca-ci/py3.8-odoo15.0:latest + - container: ghcr.io/oca/oca-ci/py3.10-odoo16.0:latest makepot: "true" name: test with Odoo - - container: ghcr.io/oca/oca-ci/py3.8-ocb15.0:latest + - container: ghcr.io/oca/oca-ci/py3.10-ocb16.0:latest name: test with OCB services: postgres: - image: postgres:9.6 + image: postgres:12.0 env: POSTGRES_USER: odoo POSTGRES_PASSWORD: odoo diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f201d2f2..af44c32f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,7 +16,7 @@ exclude: | (LICENSE.*|COPYING.*) default_language_version: python: python3 - node: "14.18.0" + node: "16.17.0" repos: - repo: local hooks: @@ -28,14 +28,14 @@ repos: language: fail files: "\\.rej$" - repo: https://github.com/oca/maintainer-tools - rev: dfba427ba03900b69e0a7f2c65890dc48921d36a + rev: 4cd2b852214dead80822e93e6749b16f2785b2fe hooks: # update the NOT INSTALLABLE ADDONS section above - id: oca-update-pre-commit-excluded-addons - id: oca-fix-manifest-website args: ["https://github.com/ForgeFlow/stock-rma"] - repo: https://github.com/myint/autoflake - rev: v1.4 + rev: v1.6.1 hooks: - id: autoflake args: @@ -46,22 +46,22 @@ repos: - --remove-duplicate-keys - --remove-unused-variables - repo: https://github.com/psf/black - rev: 22.3.0 + rev: 22.8.0 hooks: - id: black - repo: https://github.com/pre-commit/mirrors-prettier - rev: v2.4.1 + 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: v7.32.0 + rev: v8.24.0 hooks: - id: eslint verbose: true @@ -69,7 +69,7 @@ repos: - --color - --fix - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.0.1 + rev: v4.3.0 hooks: - id: trailing-whitespace # exclude autogenerated files @@ -91,12 +91,12 @@ repos: - id: mixed-line-ending args: ["--fix=lf"] - repo: https://github.com/asottile/pyupgrade - rev: v2.29.0 + rev: v2.38.2 hooks: - id: pyupgrade args: ["--keep-percent-format"] - repo: https://github.com/PyCQA/isort - rev: 5.9.3 + rev: 5.10.1 hooks: - id: isort name: isort except __init__.py diff --git a/.pylintrc b/.pylintrc index 0c7c8929..04a4adde 100644 --- a/.pylintrc +++ b/.pylintrc @@ -10,7 +10,7 @@ manifest_required_authors=ForgeFlow 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=15.0 +valid_odoo_versions=16.0 [MESSAGES CONTROL] disable=all @@ -98,6 +98,7 @@ enable=anomalous-backslash-in-string, xml-attribute-translatable, xml-deprecated-qweb-directive, xml-deprecated-tree-attribute, + external-request-timeout, # messages that do not cause the lint step to fail consider-merging-classes-inherited, create-user-wo-reset-password, diff --git a/.pylintrc-mandatory b/.pylintrc-mandatory index 9a55fc60..0bb2761a 100644 --- a/.pylintrc-mandatory +++ b/.pylintrc-mandatory @@ -9,7 +9,7 @@ manifest_required_authors=ForgeFlow 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=15.0 +valid_odoo_versions=16.0 [MESSAGES CONTROL] disable=all @@ -89,7 +89,8 @@ enable=anomalous-backslash-in-string, website-manifest-key-not-valid-uri, xml-attribute-translatable, xml-deprecated-qweb-directive, - xml-deprecated-tree-attribute + xml-deprecated-tree-attribute, + external-request-timeout [REPORTS] msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg} diff --git a/README.md b/README.md index 898571c1..ceb40514 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -[![Pre-commit Status](https://github.com/ForgeFlow/https://github.com/ForgeFlow/stock-rma/actions/workflows/pre-commit.yml/badge.svg?branch=15.0)](https://github.com/ForgeFlow/https://github.com/ForgeFlow/stock-rma/actions/workflows/pre-commit.yml?query=branch%3A15.0) -[![Build Status](https://github.com/ForgeFlow/https://github.com/ForgeFlow/stock-rma/actions/workflows/test.yml/badge.svg?branch=15.0)](https://github.com/ForgeFlow/https://github.com/ForgeFlow/stock-rma/actions/workflows/test.yml?query=branch%3A15.0) -[![codecov](https://codecov.io/gh/ForgeFlow/https://github.com/ForgeFlow/stock-rma/branch/15.0/graph/badge.svg)](https://codecov.io/gh/ForgeFlow/https://github.com/ForgeFlow/stock-rma) +[![Pre-commit Status](https://github.com/ForgeFlow/https://github.com/ForgeFlow/stock-rma/actions/workflows/pre-commit.yml/badge.svg?branch=16.0)](https://github.com/ForgeFlow/https://github.com/ForgeFlow/stock-rma/actions/workflows/pre-commit.yml?query=branch%3A16.0) +[![Build Status](https://github.com/ForgeFlow/https://github.com/ForgeFlow/stock-rma/actions/workflows/test.yml/badge.svg?branch=16.0)](https://github.com/ForgeFlow/https://github.com/ForgeFlow/stock-rma/actions/workflows/test.yml?query=branch%3A16.0) +[![codecov](https://codecov.io/gh/ForgeFlow/https://github.com/ForgeFlow/stock-rma/branch/16.0/graph/badge.svg)](https://codecov.io/gh/ForgeFlow/https://github.com/ForgeFlow/stock-rma) @@ -25,7 +25,7 @@ This part will be replaced when running the oca-gen-addons-table script from OCA ## Licenses -This repository is licensed under [AGPL-3.0](LICENSE). +This repository is licensed under [LGPL-3.0](LICENSE). However, each module can have a totally different license, as long as they adhere to ForgeFlow policy. Consult each module's `__manifest__.py` file, which contains a `license` key