Skip to content

Commit a4b00be

Browse files
committed
[IMP] update dotfiles
1 parent 898e349 commit a4b00be

5 files changed

Lines changed: 43 additions & 17 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: git+https://github.com/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: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ exclude: |
88
# Files and folders generated by bots, to avoid loops
99
^setup/|/static/description/index\.html$|
1010
# We don't want to mess with tool-generated files
11-
.svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|
11+
.svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|^eslint.config.cjs|^prettier.config.cjs|
1212
# Maybe reactivate this when all README files include prettier ignore tags?
1313
^README\.md$|
1414
# Library files can have extraneous formatting (even minimized)
@@ -42,7 +42,7 @@ repos:
4242
language: fail
4343
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
4444
- repo: https://github.com/oca/maintainer-tools
45-
rev: 9a170331575a265c092ee6b24b845ec508e8ef75
45+
rev: d5fab7ee87fceee858a3d01048c78a548974d935
4646
hooks:
4747
# update the NOT INSTALLABLE ADDONS section above
4848
- id: oca-update-pre-commit-excluded-addons
@@ -61,6 +61,8 @@ repos:
6161
hooks:
6262
- id: oca-checks-odoo-module
6363
- id: oca-checks-po
64+
args:
65+
- --disable=po-pretty-format
6466
- repo: https://github.com/myint/autoflake
6567
rev: v1.6.1
6668
hooks:
@@ -76,25 +78,35 @@ repos:
7678
rev: 22.8.0
7779
hooks:
7880
- id: black
79-
- repo: https://github.com/pre-commit/mirrors-prettier
80-
rev: v2.7.1
81+
- repo: local
8182
hooks:
8283
- id: prettier
8384
name: prettier (with plugin-xml)
85+
entry: prettier
86+
args:
87+
- --write
88+
- --list-different
89+
- --ignore-unknown
90+
types: [text]
91+
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
92+
language: node
8493
additional_dependencies:
8594
- "prettier@2.7.1"
8695
- "@prettier/plugin-xml@2.2.0"
87-
args:
88-
- --plugin=@prettier/plugin-xml
89-
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
90-
- repo: https://github.com/pre-commit/mirrors-eslint
91-
rev: v8.24.0
96+
- repo: local
9297
hooks:
9398
- id: eslint
94-
verbose: true
99+
name: eslint
100+
entry: eslint
95101
args:
96102
- --color
97103
- --fix
104+
verbose: true
105+
types: [javascript]
106+
language: node
107+
additional_dependencies:
108+
- "eslint@8.24.0"
109+
- "eslint-plugin-jsdoc@"
98110
- repo: https://github.com/pre-commit/pre-commit-hooks
99111
rev: v4.3.0
100112
hooks:
@@ -141,7 +153,7 @@ repos:
141153
- --header
142154
- "# generated from manifests external_dependencies"
143155
- repo: https://github.com/PyCQA/flake8
144-
rev: 3.9.2
156+
rev: 5.0.0
145157
hooks:
146158
- id: flake8
147159
name: flake8

0 commit comments

Comments
 (0)