Skip to content

Commit 4827853

Browse files
committed
Update dotfiles
1 parent 00854bf commit 4827853

8 files changed

Lines changed: 77 additions & 65 deletions

File tree

.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: v1.29
2+
_commit: v1.38
33
_src_path: gh:oca/oca-addons-repo-template
44
ci: GitHub
55
convert_readme_fragments_to_markdown: false

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test-requirements.txt merge=union

.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
@@ -63,6 +63,13 @@ jobs:
6363
run: oca_init_test_database
6464
- name: Run tests
6565
run: oca_run_tests
66+
- name: Upload screenshots from JS tests
67+
uses: actions/upload-artifact@v4
68+
if: ${{ failure() }}
69+
with:
70+
name: Screenshots of failed JS tests - ${{ matrix.name }}${{ join(matrix.include) }}
71+
path: /tmp/odoo_tests/${{ env.PGDATABASE }}
72+
if-no-files-found: ignore
6673
- uses: codecov/codecov-action@v4
6774
with:
6875
token: ${{ secrets.CODECOV_TOKEN }}

.pre-commit-config.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ repos:
4141
language: fail
4242
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
4343
- repo: https://github.com/oca/maintainer-tools
44-
rev: d5fab7ee87fceee858a3d01048c78a548974d935
44+
rev: f9b919b9868143135a9c9cb03021089cabba8223
4545
hooks:
4646
# update the NOT INSTALLABLE ADDONS section above
4747
- id: oca-update-pre-commit-excluded-addons
@@ -106,6 +106,7 @@ repos:
106106
additional_dependencies:
107107
- "eslint@v7.32.0"
108108
- "eslint-plugin-jsdoc@"
109+
- "globals@"
109110
- repo: https://github.com/pre-commit/pre-commit-hooks
110111
rev: v4.0.1
111112
hooks:
@@ -142,7 +143,7 @@ repos:
142143
- --settings=.
143144
exclude: /__init__\.py$
144145
- repo: https://github.com/acsone/setuptools-odoo
145-
rev: 3.1.8
146+
rev: 3.3.2
146147
hooks:
147148
- id: setuptools-odoo-make-default
148149
- id: setuptools-odoo-get-requirements

.pylintrc

Lines changed: 35 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,25 @@ disable=all
2323
enable=anomalous-backslash-in-string,
2424
api-one-deprecated,
2525
api-one-multi-together,
26-
assignment-from-none,
27-
attribute-deprecated,
2826
class-camelcase,
29-
dangerous-default-value,
3027
dangerous-view-replace-wo-priority,
31-
development-status-allowed,
3228
duplicate-id-csv,
33-
duplicate-key,
3429
duplicate-xml-fields,
3530
duplicate-xml-record-id,
3631
eval-referenced,
37-
eval-used,
3832
incoherent-interpreter-exec-perm,
33+
openerp-exception-warning,
34+
redundant-modulename-xml,
35+
relative-import,
36+
rst-syntax-error,
37+
wrong-tabs-instead-of-spaces,
38+
xml-syntax-error,
39+
assignment-from-none,
40+
attribute-deprecated,
41+
dangerous-default-value,
42+
development-status-allowed,
43+
duplicate-key,
44+
eval-used,
3945
license-allowed,
4046
manifest-author-string,
4147
manifest-deprecated-key,
@@ -46,72 +52,67 @@ enable=anomalous-backslash-in-string,
4652
method-inverse,
4753
method-required-super,
4854
method-search,
49-
openerp-exception-warning,
5055
pointless-statement,
5156
pointless-string-statement,
5257
print-used,
5358
redundant-keyword-arg,
54-
redundant-modulename-xml,
5559
reimported,
56-
relative-import,
5760
return-in-init,
58-
rst-syntax-error,
5961
sql-injection,
6062
too-few-format-args,
6163
translation-field,
6264
translation-required,
6365
unreachable,
6466
use-vim-comment,
65-
wrong-tabs-instead-of-spaces,
66-
xml-syntax-error,
67-
attribute-string-redundant,
6867
character-not-valid-in-resource-link,
69-
consider-merging-classes-inherited,
70-
context-overridden,
7168
create-user-wo-reset-password,
7269
dangerous-filter-wo-user,
7370
dangerous-qweb-replace-wo-priority,
7471
deprecated-data-xml-node,
7572
deprecated-openerp-xml-node,
7673
duplicate-po-message-definition,
77-
except-pass,
7874
file-not-used,
75+
missing-newline-extrafiles,
76+
old-api7-method-defined,
77+
po-msgstr-variables,
78+
po-syntax-error,
79+
str-format-used,
80+
unnecessary-utf8-coding-comment,
81+
xml-attribute-translatable,
82+
xml-deprecated-qweb-directive,
83+
xml-deprecated-tree-attribute,
84+
attribute-string-redundant,
85+
consider-merging-classes-inherited,
86+
context-overridden,
87+
except-pass,
7988
invalid-commit,
8089
manifest-maintainers-list,
81-
missing-newline-extrafiles,
8290
missing-readme,
8391
missing-return,
8492
odoo-addons-relative-import,
85-
old-api7-method-defined,
86-
po-msgstr-variables,
87-
po-syntax-error,
8893
renamed-field-parameter,
8994
resource-not-exist,
90-
str-format-used,
9195
test-folder-imported,
9296
translation-contains-variable,
9397
translation-positional-used,
94-
unnecessary-utf8-coding-comment,
9598
website-manifest-key-not-valid-uri,
96-
xml-attribute-translatable,
97-
xml-deprecated-qweb-directive,
98-
xml-deprecated-tree-attribute,
99-
# messages that do not cause the lint step to fail
100-
consider-merging-classes-inherited,
99+
missing-manifest-dependency,
100+
too-complex,,
101101
create-user-wo-reset-password,
102102
dangerous-filter-wo-user,
103-
deprecated-module,
104103
file-not-used,
105-
invalid-commit,
106-
missing-manifest-dependency,
107104
missing-newline-extrafiles,
108-
missing-readme,
109105
no-utf8-coding-comment,
110-
odoo-addons-relative-import,
111106
old-api7-method-defined,
107+
unnecessary-utf8-coding-comment,
108+
# messages that do not cause the lint step to fail
109+
consider-merging-classes-inherited,
110+
deprecated-module,
111+
invalid-commit,
112+
missing-readme,
113+
odoo-addons-relative-import,
112114
redefined-builtin,
113-
too-complex,
114-
unnecessary-utf8-coding-comment
115+
manifest-external-assets
115116

116117

117118
[REPORTS]

.pylintrc-mandatory

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,25 @@ disable=all
1616
enable=anomalous-backslash-in-string,
1717
api-one-deprecated,
1818
api-one-multi-together,
19-
assignment-from-none,
20-
attribute-deprecated,
2119
class-camelcase,
22-
dangerous-default-value,
2320
dangerous-view-replace-wo-priority,
24-
development-status-allowed,
2521
duplicate-id-csv,
26-
duplicate-key,
2722
duplicate-xml-fields,
2823
duplicate-xml-record-id,
2924
eval-referenced,
30-
eval-used,
3125
incoherent-interpreter-exec-perm,
26+
openerp-exception-warning,
27+
redundant-modulename-xml,
28+
relative-import,
29+
rst-syntax-error,
30+
wrong-tabs-instead-of-spaces,
31+
xml-syntax-error,
32+
assignment-from-none,
33+
attribute-deprecated,
34+
dangerous-default-value,
35+
development-status-allowed,
36+
duplicate-key,
37+
eval-used,
3238
license-allowed,
3339
manifest-author-string,
3440
manifest-deprecated-key,
@@ -39,56 +45,50 @@ enable=anomalous-backslash-in-string,
3945
method-inverse,
4046
method-required-super,
4147
method-search,
42-
openerp-exception-warning,
4348
pointless-statement,
4449
pointless-string-statement,
4550
print-used,
4651
redundant-keyword-arg,
47-
redundant-modulename-xml,
4852
reimported,
49-
relative-import,
5053
return-in-init,
51-
rst-syntax-error,
5254
sql-injection,
5355
too-few-format-args,
5456
translation-field,
5557
translation-required,
5658
unreachable,
5759
use-vim-comment,
58-
wrong-tabs-instead-of-spaces,
59-
xml-syntax-error,
60-
attribute-string-redundant,
6160
character-not-valid-in-resource-link,
62-
consider-merging-classes-inherited,
63-
context-overridden,
6461
create-user-wo-reset-password,
6562
dangerous-filter-wo-user,
6663
dangerous-qweb-replace-wo-priority,
6764
deprecated-data-xml-node,
6865
deprecated-openerp-xml-node,
6966
duplicate-po-message-definition,
70-
except-pass,
7167
file-not-used,
68+
missing-newline-extrafiles,
69+
old-api7-method-defined,
70+
po-msgstr-variables,
71+
po-syntax-error,
72+
str-format-used,
73+
unnecessary-utf8-coding-comment,
74+
xml-attribute-translatable,
75+
xml-deprecated-qweb-directive,
76+
xml-deprecated-tree-attribute,
77+
attribute-string-redundant,
78+
consider-merging-classes-inherited,
79+
context-overridden,
80+
except-pass,
7281
invalid-commit,
7382
manifest-maintainers-list,
74-
missing-newline-extrafiles,
7583
missing-readme,
7684
missing-return,
7785
odoo-addons-relative-import,
78-
old-api7-method-defined,
79-
po-msgstr-variables,
80-
po-syntax-error,
8186
renamed-field-parameter,
8287
resource-not-exist,
83-
str-format-used,
8488
test-folder-imported,
8589
translation-contains-variable,
8690
translation-positional-used,
87-
unnecessary-utf8-coding-comment,
88-
website-manifest-key-not-valid-uri,
89-
xml-attribute-translatable,
90-
xml-deprecated-qweb-directive,
91-
xml-deprecated-tree-attribute
91+
website-manifest-key-not-valid-uri
9292

9393
[REPORTS]
9494
msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11

2+
[![Support the OCA](https://odoo-community.org/readme-banner-image)](https://odoo-community.org/get-involved?utm_source=repo-readme)
3+
4+
# Server Authentication
25
[![Runboat](https://img.shields.io/badge/runboat-Try%20me-875A7B.png)](https://runboat.odoo-community.org/builds?repo=OCA/server-auth&target_branch=15.0)
36
[![Pre-commit Status](https://github.com/OCA/server-auth/actions/workflows/pre-commit.yml/badge.svg?branch=15.0)](https://github.com/OCA/server-auth/actions/workflows/pre-commit.yml?query=branch%3A15.0)
47
[![Build Status](https://github.com/OCA/server-auth/actions/workflows/test.yml/badge.svg?branch=15.0)](https://github.com/OCA/server-auth/actions/workflows/test.yml?query=branch%3A15.0)
@@ -7,8 +10,6 @@
710

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

10-
# Server Authentication
11-
1213
Modules for handling various authentication schemes
1314

1415
<!-- /!\ do not modify below this line -->

0 commit comments

Comments
 (0)