Skip to content

Commit ea8d2f5

Browse files
committed
[IMP] update dotfiles
1 parent fb14058 commit ea8d2f5

File tree

5 files changed

+44
-18
lines changed

5 files changed

+44
-18
lines changed

.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
@@ -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)
@@ -51,7 +51,7 @@ repos:
5151
language: fail
5252
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
5353
- repo: https://github.com/oca/maintainer-tools
54-
rev: 9a170331575a265c092ee6b24b845ec508e8ef75
54+
rev: d5fab7ee87fceee858a3d01048c78a548974d935
5555
hooks:
5656
# update the NOT INSTALLABLE ADDONS section above
5757
- id: oca-update-pre-commit-excluded-addons
@@ -70,8 +70,10 @@ repos:
7070
hooks:
7171
- id: oca-checks-odoo-module
7272
- id: oca-checks-po
73+
args:
74+
- --disable=po-pretty-format
7375
- repo: https://github.com/myint/autoflake
74-
rev: v1.4
76+
rev: v1.5.3
7577
hooks:
7678
- id: autoflake
7779
args:
@@ -85,25 +87,35 @@ repos:
8587
rev: 22.3.0
8688
hooks:
8789
- id: black
88-
- repo: https://github.com/pre-commit/mirrors-prettier
89-
rev: v2.1.2
90+
- repo: local
9091
hooks:
9192
- id: prettier
9293
name: prettier (with plugin-xml)
94+
entry: prettier
95+
args:
96+
- --write
97+
- --list-different
98+
- --ignore-unknown
99+
types: [text]
100+
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
101+
language: node
93102
additional_dependencies:
94103
- "prettier@2.1.2"
95104
- "@prettier/plugin-xml@0.12.0"
96-
args:
97-
- --plugin=@prettier/plugin-xml
98-
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
99-
- repo: https://github.com/pre-commit/mirrors-eslint
100-
rev: v7.8.1
105+
- repo: local
101106
hooks:
102107
- id: eslint
103-
verbose: true
108+
name: eslint
109+
entry: eslint
104110
args:
105111
- --color
106112
- --fix
113+
verbose: true
114+
types: [javascript]
115+
language: node
116+
additional_dependencies:
117+
- "eslint@7.8.1"
118+
- "eslint-plugin-jsdoc@"
107119
- repo: https://github.com/pre-commit/pre-commit-hooks
108120
rev: v3.2.0
109121
hooks:
@@ -150,7 +162,7 @@ repos:
150162
- --header
151163
- "# generated from manifests external_dependencies"
152164
- repo: https://github.com/PyCQA/flake8
153-
rev: 3.8.3
165+
rev: 5.0.0
154166
hooks:
155167
- id: flake8
156168
name: flake8

0 commit comments

Comments
 (0)