Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Do NOT update manually; changes here will be overwritten by Copier
_commit: v1.35
_commit: v1.44
_src_path: gh:oca/oca-addons-repo-template
ci: GitHub
convert_readme_fragments_to_markdown: false
enable_checklog_odoo: false
generate_requirements_txt: true
Expand All @@ -16,6 +15,7 @@ odoo_test_flavor: Both
odoo_version: 16.0
org_name: Escodoo
org_slug: Escodoo
postgres_image: ''
rebel_module_groups: []
repo_description: Odoo Server Addons
repo_name: Odoo Server Addons
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

name: pre-commit

on:
Expand All @@ -9,14 +10,20 @@ on:
- "16.0"
- "16.0-ocabot-*"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
pre-commit:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.10"
cache: 'pip'
cache-dependency-path: '.pre-commit-config.yaml'
- name: Get python version
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
- uses: actions/cache@v4
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
- "16.0"
- "16.0-ocabot-*"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
unreleased-deps:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -63,6 +67,13 @@ jobs:
run: oca_init_test_database
- name: Run tests
run: oca_run_tests
- name: Upload screenshots from JS tests
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: Screenshots of failed JS tests - ${{ matrix.name }}${{ join(matrix.include) }}
path: /tmp/odoo_tests/${{ env.PGDATABASE }}
if-no-files-found: ignore
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
11 changes: 8 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ exclude: |
# You don't usually want a bot to modify your legal texts
(LICENSE.*|COPYING.*)
default_language_version:
python: python3
python: python3.10
node: "16.17.0"
repos:
- repo: local
Expand All @@ -38,8 +38,13 @@ repos:
entry: found a en.po file
language: fail
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
- id: obsolete dotfiles
name: obsolete dotfiles
entry: found obsolete files; remove them
files: '^(\.travis\.yml|\.t2d\.yml|CONTRIBUTING\.md)$'
language: fail
- repo: https://github.com/oca/maintainer-tools
rev: f9b919b9868143135a9c9cb03021089cabba8223
rev: 31bdbd8e4cb94be6534f0e82b1cafb84a455f671
hooks:
# update the NOT INSTALLABLE ADDONS section above
- id: oca-update-pre-commit-excluded-addons
Expand Down Expand Up @@ -141,7 +146,7 @@ repos:
- --settings=.
exclude: /__init__\.py$
- repo: https://github.com/acsone/setuptools-odoo
rev: 3.1.8
rev: 3.3.2
hooks:
- id: setuptools-odoo-make-default
- id: setuptools-odoo-get-requirements
Expand Down
22 changes: 13 additions & 9 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
load-plugins=pylint_odoo
score=n

[IMPORTS]
deprecated-modules=pdb,pudb,ipdb,bs4

[ODOOLINT]
readme-template-url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst"
manifest-required-authors=Escodoo
Expand Down Expand Up @@ -41,6 +44,7 @@ enable=anomalous-backslash-in-string,
assignment-from-none,
attribute-deprecated,
dangerous-default-value,
deprecated-module,
development-status-allowed,
duplicate-key,
eval-used,
Expand Down Expand Up @@ -99,22 +103,22 @@ enable=anomalous-backslash-in-string,
translation-positional-used,
website-manifest-key-not-valid-uri,
external-request-timeout,
# messages that do not cause the lint step to fail
consider-merging-classes-inherited,
missing-manifest-dependency,
too-complex,
create-user-wo-reset-password,
dangerous-filter-wo-user,
deprecated-module,
file-not-used,
invalid-commit,
missing-manifest-dependency,
missing-newline-extrafiles,
missing-readme,
no-utf8-coding-comment,
odoo-addons-relative-import,
old-api7-method-defined,
redefined-builtin,
too-complex,
unnecessary-utf8-coding-comment,
# messages that do not cause the lint step to fail
consider-merging-classes-inherited,
deprecated-module,
invalid-commit,
missing-readme,
odoo-addons-relative-import,
redefined-builtin,
manifest-external-assets


Expand Down
4 changes: 4 additions & 0 deletions .pylintrc-mandatory
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
load-plugins=pylint_odoo
score=n

[IMPORTS]
deprecated-modules=pdb,pudb,ipdb,bs4

[ODOOLINT]
readme-template-url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst"
manifest-required-authors=Escodoo
Expand Down Expand Up @@ -33,6 +36,7 @@ enable=anomalous-backslash-in-string,
assignment-from-none,
attribute-deprecated,
dangerous-default-value,
deprecated-module,
development-status-allowed,
duplicate-key,
eval-used,
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@


# Odoo Server Addons
<!-- /!\ Non OCA Context : Set here the badge of your runbot / runboat instance. -->
[![Pre-commit Status](https://github.com/Escodoo/server-addons/actions/workflows/pre-commit.yml/badge.svg?branch=16.0)](https://github.com/Escodoo/server-addons/actions/workflows/pre-commit.yml?query=branch%3A16.0)
[![Build Status](https://github.com/Escodoo/server-addons/actions/workflows/test.yml/badge.svg?branch=16.0)](https://github.com/Escodoo/server-addons/actions/workflows/test.yml?query=branch%3A16.0)
Expand All @@ -7,8 +9,6 @@

<!-- /!\ do not modify above this line -->

# Odoo Server Addons

Odoo Server Addons

<!-- /!\ do not modify below this line -->
Expand Down
6 changes: 6 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended", ":disableDependencyDashboard"],
"baseBranchPatterns": ["17.0", "16.0", "15.0", "14.0", "13.0"],
"enabledManagers": ["copier"]
}
Loading