Skip to content

Commit 0fc4704

Browse files
committed
[IMP] update dotfiles
1 parent abf2bd6 commit 0fc4704

File tree

6 files changed

+35
-17
lines changed

6 files changed

+35
-17
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: '1.23'
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: {}

.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
@@ -63,7 +63,7 @@ jobs:
6363
INCLUDE: "${{ matrix.include }}"
6464
EXCLUDE: "${{ matrix.exclude }}"
6565
steps:
66-
- uses: actions/checkout@v3
66+
- uses: actions/checkout@v4
6767
with:
6868
persist-credentials: false
6969
- name: Install addons and dependencies

.gitignore

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

28+
# Windows installers
29+
*.msi
30+
2831
# Debian packages
2932
*.deb
3033

@@ -33,6 +36,7 @@ var/
3336

3437
# MacOS packages
3538
*.dmg
39+
*.pkg
3640

3741
# Installer logs
3842
pip-log.txt

.pre-commit-config.yaml

+23-11
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)
@@ -43,11 +43,11 @@ repos:
4343
language: fail
4444
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
4545
- repo: https://github.com/sbidoul/whool
46-
rev: v0.5
46+
rev: v1.2
4747
hooks:
4848
- id: whool-init
4949
- repo: https://github.com/oca/maintainer-tools
50-
rev: 9a170331575a265c092ee6b24b845ec508e8ef75
50+
rev: d5fab7ee87fceee858a3d01048c78a548974d935
5151
hooks:
5252
# update the NOT INSTALLABLE ADDONS section above
5353
- id: oca-update-pre-commit-excluded-addons
@@ -68,25 +68,37 @@ repos:
6868
hooks:
6969
- id: oca-checks-odoo-module
7070
- id: oca-checks-po
71-
- repo: https://github.com/pre-commit/mirrors-prettier
72-
rev: v2.7.1
71+
args:
72+
- --disable=po-pretty-format
73+
- repo: local
7374
hooks:
7475
- id: prettier
7576
name: prettier (with plugin-xml)
77+
entry: prettier
78+
args:
79+
- --write
80+
- --list-different
81+
- --ignore-unknown
82+
types: [text]
83+
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
84+
language: node
7685
additional_dependencies:
7786
- "prettier@2.7.1"
7887
- "@prettier/plugin-xml@2.2.0"
79-
args:
80-
- --plugin=@prettier/plugin-xml
81-
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
82-
- repo: https://github.com/pre-commit/mirrors-eslint
83-
rev: v8.24.0
88+
- repo: local
8489
hooks:
8590
- id: eslint
86-
verbose: true
91+
name: eslint
92+
entry: eslint
8793
args:
8894
- --color
8995
- --fix
96+
verbose: true
97+
types: [javascript]
98+
language: node
99+
additional_dependencies:
100+
- "eslint@8.24.0"
101+
- "eslint-plugin-jsdoc@"
90102
- repo: https://github.com/pre-commit/pre-commit-hooks
91103
rev: v4.3.0
92104
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)