Skip to content

Commit 076eada

Browse files
committed
[IMP] update dotfiles
1 parent 437403f commit 076eada

5 files changed

Lines changed: 44 additions & 18 deletions

File tree

.copier-answers.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
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
ci: GitHub
55
convert_readme_fragments_to_markdown: false
6+
enable_checklog_odoo: false
67
generate_requirements_txt: true
78
github_check_license: true
89
github_ci_extra_env: {}

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 3 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 13 additions & 0 deletions
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

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ exclude: |
66
# Files and folders generated by bots, to avoid loops
77
^setup/|/static/description/index\.html$|
88
# We don't want to mess with tool-generated files
9-
.svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|
9+
.svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|^eslint.config.cjs|^prettier.config.cjs|
1010
# Maybe reactivate this when all README files include prettier ignore tags?
1111
^README\.md$|
1212
# Library files can have extraneous formatting (even minimized)
@@ -40,7 +40,7 @@ repos:
4040
language: fail
4141
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
4242
- repo: https://github.com/oca/maintainer-tools
43-
rev: 9a170331575a265c092ee6b24b845ec508e8ef75
43+
rev: d5fab7ee87fceee858a3d01048c78a548974d935
4444
hooks:
4545
# update the NOT INSTALLABLE ADDONS section above
4646
- id: oca-update-pre-commit-excluded-addons
@@ -59,8 +59,10 @@ repos:
5959
hooks:
6060
- id: oca-checks-odoo-module
6161
- id: oca-checks-po
62+
args:
63+
- --disable=po-pretty-format
6264
- repo: https://github.com/myint/autoflake
63-
rev: v1.4
65+
rev: v1.5.3
6466
hooks:
6567
- id: autoflake
6668
args:
@@ -74,25 +76,35 @@ repos:
7476
rev: 22.3.0
7577
hooks:
7678
- id: black
77-
- repo: https://github.com/pre-commit/mirrors-prettier
78-
rev: v2.4.1
79+
- repo: local
7980
hooks:
8081
- id: prettier
8182
name: prettier (with plugin-xml)
83+
entry: prettier
84+
args:
85+
- --write
86+
- --list-different
87+
- --ignore-unknown
88+
types: [text]
89+
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
90+
language: node
8291
additional_dependencies:
8392
- "prettier@2.4.1"
8493
- "@prettier/plugin-xml@1.1.0"
85-
args:
86-
- --plugin=@prettier/plugin-xml
87-
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
88-
- repo: https://github.com/pre-commit/mirrors-eslint
89-
rev: v7.32.0
94+
- repo: local
9095
hooks:
9196
- id: eslint
92-
verbose: true
97+
name: eslint
98+
entry: eslint
9399
args:
94100
- --color
95101
- --fix
102+
verbose: true
103+
types: [javascript]
104+
language: node
105+
additional_dependencies:
106+
- "eslint@v7.32.0"
107+
- "eslint-plugin-jsdoc@"
96108
- repo: https://github.com/pre-commit/pre-commit-hooks
97109
rev: v4.0.1
98110
hooks:
@@ -139,7 +151,7 @@ repos:
139151
- --header
140152
- "# generated from manifests external_dependencies"
141153
- repo: https://github.com/PyCQA/flake8
142-
rev: 3.9.2
154+
rev: 5.0.0
143155
hooks:
144156
- id: flake8
145157
name: flake8

0 commit comments

Comments
 (0)