Skip to content

Commit 7181858

Browse files
committed
[IMP] update dotfiles
1 parent 0f794ce commit 7181858

7 files changed

+45
-18
lines changed

.copier-answers.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# Do NOT update manually; changes here will be overwritten by Copier
2-
_commit: v1.21.1
2+
_commit: v1.29
33
_src_path: gh:oca/oca-addons-repo-template
44
additional_ruff_rules: []
55
ci: GitHub
66
convert_readme_fragments_to_markdown: true
7+
enable_checklog_odoo: false
78
generate_requirements_txt: true
89
github_check_license: true
910
github_ci_extra_env: {}

.eslintrc.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ env:
44

55
# See https://github.com/OCA/odoo-community.org/issues/37#issuecomment-470686449
66
parserOptions:
7-
ecmaVersion: 2019
7+
ecmaVersion: 2022
88

99
overrides:
1010
- files:

.github/workflows/pre-commit.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ jobs:
1313
pre-commit:
1414
runs-on: ubuntu-22.04
1515
steps:
16-
- uses: actions/checkout@v3
17-
- uses: actions/setup-python@v2
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-python@v5
1818
with:
1919
python-version: "3.11"
2020
- name: Get python version
2121
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
22-
- uses: actions/cache@v1
22+
- uses: actions/cache@v4
2323
with:
2424
path: ~/.cache/pre-commit
2525
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}

.github/workflows/test.yml

+2-2
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@v3
17+
- uses: actions/checkout@v4
1818
- run: |
1919
for reqfile in requirements.txt test-requirements.txt ; do
2020
if [ -f ${reqfile} ] ; then
@@ -50,7 +50,7 @@ jobs:
5050
ports:
5151
- 5432:5432
5252
steps:
53-
- uses: actions/checkout@v3
53+
- uses: actions/checkout@v4
5454
with:
5555
persist-credentials: false
5656
- name: Install addons and dependencies

.gitignore

+13
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,19 @@ var/
2525
*.egg
2626
*.eggs
2727

28+
# Windows installers
29+
*.msi
30+
31+
# Debian packages
32+
*.deb
33+
34+
# Redhat packages
35+
*.rpm
36+
37+
# MacOS packages
38+
*.dmg
39+
*.pkg
40+
2841
# Installer logs
2942
pip-log.txt
3043
pip-delete-this-directory.txt

.pre-commit-config.yaml

+23-11
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ exclude: |
55
# Files and folders generated by bots, to avoid loops
66
^setup/|/static/description/index\.html$|
77
# We don't want to mess with tool-generated files
8-
.svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|
8+
.svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|^eslint.config.cjs|^prettier.config.cjs|
99
# Maybe reactivate this when all README files include prettier ignore tags?
1010
^README\.md$|
1111
# Library files can have extraneous formatting (even minimized)
@@ -39,11 +39,11 @@ repos:
3939
language: fail
4040
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
4141
- repo: https://github.com/sbidoul/whool
42-
rev: v0.5
42+
rev: v1.2
4343
hooks:
4444
- id: whool-init
4545
- repo: https://github.com/oca/maintainer-tools
46-
rev: 9a170331575a265c092ee6b24b845ec508e8ef75
46+
rev: d5fab7ee87fceee858a3d01048c78a548974d935
4747
hooks:
4848
# update the NOT INSTALLABLE ADDONS section above
4949
- id: oca-update-pre-commit-excluded-addons
@@ -64,25 +64,37 @@ repos:
6464
hooks:
6565
- id: oca-checks-odoo-module
6666
- id: oca-checks-po
67-
- repo: https://github.com/pre-commit/mirrors-prettier
68-
rev: v2.7.1
67+
args:
68+
- --disable=po-pretty-format
69+
- repo: local
6970
hooks:
7071
- id: prettier
7172
name: prettier (with plugin-xml)
73+
entry: prettier
74+
args:
75+
- --write
76+
- --list-different
77+
- --ignore-unknown
78+
types: [text]
79+
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
80+
language: node
7281
additional_dependencies:
7382
- "prettier@2.7.1"
7483
- "@prettier/plugin-xml@2.2.0"
75-
args:
76-
- --plugin=@prettier/plugin-xml
77-
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
78-
- repo: https://github.com/pre-commit/mirrors-eslint
79-
rev: v8.24.0
84+
- repo: local
8085
hooks:
8186
- id: eslint
82-
verbose: true
87+
name: eslint
88+
entry: eslint
8389
args:
8490
- --color
8591
- --fix
92+
verbose: true
93+
types: [javascript]
94+
language: node
95+
additional_dependencies:
96+
- "eslint@8.24.0"
97+
- "eslint-plugin-jsdoc@"
8698
- repo: https://github.com/pre-commit/pre-commit-hooks
8799
rev: v4.3.0
88100
hooks:

.ruff.toml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ extend-select = [
1010
"I", # isort
1111
"UP", # pyupgrade
1212
]
13+
extend-safe-fixes = ["UP008"]
1314
exclude = ["setup/*"]
1415

1516
[format]

0 commit comments

Comments
 (0)