Skip to content

Commit cb73433

Browse files
committed
[IMP] update dotfiles
1 parent 1f3443c commit cb73433

7 files changed

+46
-22
lines changed

.copier-answers.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# Do NOT update manually; changes here will be overwritten by Copier
2-
_commit: v1.14.2
2+
_commit: v1.17.2
33
_src_path: gh:oca/oca-addons-repo-template
44
ci: GitHub
5-
dependency_installation_mode: PIP
65
generate_requirements_txt: true
76
github_check_license: true
87
github_ci_extra_env: {}
@@ -11,6 +10,7 @@ github_enable_makepot: true
1110
github_enable_stale_action: true
1211
github_enforce_dev_status_compatibility: true
1312
include_wkhtmltopdf: false
13+
odoo_test_flavor: Both
1414
odoo_version: 16.0
1515
org_name: Odoo Community Association (OCA)
1616
org_slug: OCA
@@ -19,6 +19,4 @@ repo_description: 'TODO: add repo description.'
1919
repo_name: maintenance
2020
repo_slug: maintenance
2121
repo_website: https://github.com/OCA/maintenance
22-
travis_apt_packages: []
23-
travis_apt_sources: []
2422

.eslintrc.yml

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ globals:
2222
odoo: readonly
2323
openerp: readonly
2424
owl: readonly
25+
luxon: readonly
2526

2627
# Styling is handled by Prettier, so we only need to enable AST rules;
2728
# see https://github.com/OCA/maintainer-quality-tools/pull/618#issuecomment-558576890

.github/workflows/pre-commit.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ jobs:
1313
pre-commit:
1414
runs-on: ubuntu-22.04
1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v3
1717
- uses: actions/setup-python@v2
18+
with:
19+
python-version: "3.11"
1820
- name: Get python version
1921
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
2022
- uses: actions/cache@v1
@@ -25,6 +27,15 @@ jobs:
2527
run: pip install pre-commit
2628
- name: Run pre-commit
2729
run: pre-commit run --all-files --show-diff-on-failure --color=always
30+
env:
31+
# Consider valid a PR that changes README fragments but doesn't
32+
# change the README.rst file itself. It's not really a problem
33+
# because the bot will update it anyway after merge. This way, we
34+
# lower the barrier for functional contributors that want to fix the
35+
# readme fragments, while still letting developers get README
36+
# auto-generated (which also helps functionals when using runboat).
37+
# DOCS https://pre-commit.com/#temporarily-disabling-hooks
38+
SKIP: oca-gen-addon-readme
2839
- name: Check that all files generated by pre-commit are in git
2940
run: |
3041
newfiles="$(git ls-files --others --exclude-from=.gitignore)"

.github/workflows/test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
name: Detect unreleased dependencies
1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v3
1818
- run: |
1919
for reqfile in requirements.txt test-requirements.txt ; do
2020
if [ -f ${reqfile} ] ; then
@@ -36,10 +36,10 @@ jobs:
3636
matrix:
3737
include:
3838
- container: ghcr.io/oca/oca-ci/py3.10-odoo16.0:latest
39-
makepot: "true"
4039
name: test with Odoo
4140
- container: ghcr.io/oca/oca-ci/py3.10-ocb16.0:latest
4241
name: test with OCB
42+
makepot: "true"
4343
services:
4444
postgres:
4545
image: postgres:12.0
@@ -50,7 +50,7 @@ jobs:
5050
ports:
5151
- 5432:5432
5252
steps:
53-
- uses: actions/checkout@v2
53+
- uses: actions/checkout@v3
5454
with:
5555
persist-credentials: false
5656
- name: Install addons and dependencies

.pre-commit-config.yaml

+16-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ exclude: |
1212
/static/(src/)?lib/|
1313
# Repos using Sphinx to generate docs don't need prettying
1414
^docs/_templates/.*\.html$|
15+
# Don't bother non-technical authors with formatting issues in docs
16+
readme/.*\.(rst|md)$|
1517
# You don't usually want a bot to modify your legal texts
1618
(LICENSE.*|COPYING.*)
1719
default_language_version:
@@ -33,12 +35,24 @@ repos:
3335
language: fail
3436
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
3537
- repo: https://github.com/oca/maintainer-tools
36-
rev: 4cd2b852214dead80822e93e6749b16f2785b2fe
38+
rev: 969238e47c07d0c40573acff81d170f63245d738
3739
hooks:
3840
# update the NOT INSTALLABLE ADDONS section above
3941
- id: oca-update-pre-commit-excluded-addons
4042
- id: oca-fix-manifest-website
4143
args: ["https://github.com/OCA/maintenance"]
44+
- id: oca-gen-addon-readme
45+
args:
46+
- --addons-dir=.
47+
- --branch=16.0
48+
- --org-name=OCA
49+
- --repo-name=maintenance
50+
- --if-source-changed
51+
- repo: https://github.com/OCA/odoo-pre-commit-hooks
52+
rev: v0.0.25
53+
hooks:
54+
- id: oca-checks-odoo-module
55+
- id: oca-checks-po
4256
- repo: https://github.com/myint/autoflake
4357
rev: v1.6.1
4458
hooks:
@@ -125,7 +139,7 @@ repos:
125139
name: flake8
126140
additional_dependencies: ["flake8-bugbear==21.9.2"]
127141
- repo: https://github.com/OCA/pylint-odoo
128-
rev: 7.0.2
142+
rev: v8.0.19
129143
hooks:
130144
- id: pylint_odoo
131145
name: pylint with optional checks

.pylintrc

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ load-plugins=pylint_odoo
55
score=n
66

77
[ODOOLINT]
8-
readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst"
9-
manifest_required_authors=Odoo Community Association (OCA)
10-
manifest_required_keys=license
11-
manifest_deprecated_keys=description,active
12-
license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3
13-
valid_odoo_versions=16.0
8+
readme-template-url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst"
9+
manifest-required-authors=Odoo Community Association (OCA)
10+
manifest-required-keys=license
11+
manifest-deprecated-keys=description,active
12+
license-allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3
13+
valid-odoo-versions=16.0
1414

1515
[MESSAGES CONTROL]
1616
disable=all

.pylintrc-mandatory

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ load-plugins=pylint_odoo
44
score=n
55

66
[ODOOLINT]
7-
readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst"
8-
manifest_required_authors=Odoo Community Association (OCA)
9-
manifest_required_keys=license
10-
manifest_deprecated_keys=description,active
11-
license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3
12-
valid_odoo_versions=16.0
7+
readme-template-url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst"
8+
manifest-required-authors=Odoo Community Association (OCA)
9+
manifest-required-keys=license
10+
manifest-deprecated-keys=description,active
11+
license-allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3
12+
valid-odoo-versions=16.0
1313

1414
[MESSAGES CONTROL]
1515
disable=all

0 commit comments

Comments
 (0)