Skip to content

Commit dfc8d84

Browse files
Merge PR #9 into 16.0
Signed-off-by legalsylvain
2 parents bbf340c + 9b63883 commit dfc8d84

File tree

5 files changed

+19
-26
lines changed

5 files changed

+19
-26
lines changed

.copier-answers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Do NOT update manually; changes here will be overwritten by Copier
2-
_commit: 352dc52
2+
_commit: 51c8c81
33
_src_path: https://github.com/grap/oca-addons-repo-template-v16
44
ci: GitHub
55
convert_readme_fragments_to_markdown: true

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
- uses: actions/setup-python@v5
1818
with:
1919
python-version: "3.11"
20+
cache: 'pip'
2021
- name: Get python version
2122
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
2223
- uses: actions/cache@v4

.github/workflows/test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ jobs:
4545
run: oca_init_test_database
4646
- name: Run tests
4747
run: oca_run_tests
48+
- name: Upload screenshots from JS tests
49+
uses: actions/upload-artifact@v4
50+
if: ${{ failure() }}
51+
with:
52+
name: Screenshots of failed JS tests - ${{ matrix.name }}${{ join(matrix.include) }}
53+
path: /tmp/odoo_tests/${{ env.PGDATABASE }}
54+
if-no-files-found: ignore
4855
- uses: codecov/codecov-action@v4
4956
with:
5057
token: ${{ secrets.CODECOV_TOKEN }}

.pre-commit-config.yaml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -77,21 +77,6 @@ repos:
7777
rev: 22.8.0
7878
hooks:
7979
- id: black
80-
- repo: local
81-
hooks:
82-
- id: eslint
83-
name: eslint
84-
entry: eslint
85-
args:
86-
- --color
87-
- --fix
88-
verbose: true
89-
types: [javascript]
90-
language: node
91-
additional_dependencies:
92-
- "eslint@8.24.0"
93-
- "eslint-plugin-jsdoc@"
94-
- "globals@"
9580
- repo: https://github.com/pre-commit/pre-commit-hooks
9681
rev: v4.3.0
9782
hooks:
@@ -128,7 +113,7 @@ repos:
128113
- --settings=.
129114
exclude: /__init__\.py$
130115
- repo: https://github.com/acsone/setuptools-odoo
131-
rev: 3.1.8
116+
rev: 3.3.2
132117
hooks:
133118
- id: setuptools-odoo-make-default
134119
- id: setuptools-odoo-get-requirements

.pylintrc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -99,22 +99,22 @@ enable=anomalous-backslash-in-string,
9999
translation-positional-used,
100100
website-manifest-key-not-valid-uri,
101101
external-request-timeout,
102-
# messages that do not cause the lint step to fail
103-
consider-merging-classes-inherited,
102+
missing-manifest-dependency,
103+
too-complex,,
104104
create-user-wo-reset-password,
105105
dangerous-filter-wo-user,
106-
deprecated-module,
107106
file-not-used,
108-
invalid-commit,
109-
missing-manifest-dependency,
110107
missing-newline-extrafiles,
111-
missing-readme,
112108
no-utf8-coding-comment,
113-
odoo-addons-relative-import,
114109
old-api7-method-defined,
115-
redefined-builtin,
116-
too-complex,
117110
unnecessary-utf8-coding-comment,
111+
# messages that do not cause the lint step to fail
112+
consider-merging-classes-inherited,
113+
deprecated-module,
114+
invalid-commit,
115+
missing-readme,
116+
odoo-addons-relative-import,
117+
redefined-builtin,
118118
manifest-external-assets
119119

120120

0 commit comments

Comments
 (0)