Skip to content

Commit 497aa09

Browse files
committed
[IMP] update dotfiles
1 parent 6bece12 commit 497aa09

File tree

6 files changed

+43
-16
lines changed

6 files changed

+43
-16
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: false
7+
enable_checklog_odoo: false
78
generate_requirements_txt: true
89
github_check_license: true
910
github_ci_extra_env: {}

.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

+22-10
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,7 +39,7 @@ repos:
3939
language: fail
4040
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
4141
- repo: https://github.com/oca/maintainer-tools
42-
rev: 9a170331575a265c092ee6b24b845ec508e8ef75
42+
rev: d5fab7ee87fceee858a3d01048c78a548974d935
4343
hooks:
4444
# update the NOT INSTALLABLE ADDONS section above
4545
- id: oca-update-pre-commit-excluded-addons
@@ -58,25 +58,37 @@ repos:
5858
hooks:
5959
- id: oca-checks-odoo-module
6060
- id: oca-checks-po
61-
- repo: https://github.com/pre-commit/mirrors-prettier
62-
rev: v2.7.1
61+
args:
62+
- --disable=po-pretty-format
63+
- repo: local
6364
hooks:
6465
- id: prettier
6566
name: prettier (with plugin-xml)
67+
entry: prettier
68+
args:
69+
- --write
70+
- --list-different
71+
- --ignore-unknown
72+
types: [text]
73+
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
74+
language: node
6675
additional_dependencies:
6776
6877
- "@prettier/[email protected]"
69-
args:
70-
- --plugin=@prettier/plugin-xml
71-
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
72-
- repo: https://github.com/pre-commit/mirrors-eslint
73-
rev: v8.24.0
78+
- repo: local
7479
hooks:
7580
- id: eslint
76-
verbose: true
81+
name: eslint
82+
entry: eslint
7783
args:
7884
- --color
7985
- --fix
86+
verbose: true
87+
types: [javascript]
88+
language: node
89+
additional_dependencies:
90+
91+
- "eslint-plugin-jsdoc@"
8092
- repo: https://github.com/pre-commit/pre-commit-hooks
8193
rev: v4.3.0
8294
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)