Skip to content

Commit 6b71ee6

Browse files
committed
[IMP] update dotfiles
1 parent 399ca0d commit 6b71ee6

6 files changed

Lines changed: 51 additions & 21 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.20
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/stale.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Stale PRs and issues policy
12-
uses: actions/stale@v4
12+
uses: actions/stale@v9
1313
with:
1414
repo-token: ${{ secrets.GITHUB_TOKEN }}
1515
# General settings.
@@ -48,7 +48,7 @@ jobs:
4848
# * Issues that are pending more information
4949
# * Except Issues marked as "no stale"
5050
- name: Needs more information stale issues policy
51-
uses: actions/stale@v4
51+
uses: actions/stale@v9
5252
with:
5353
repo-token: ${{ secrets.GITHUB_TOKEN }}
5454
ascending: true

.github/workflows/test.yml

Lines changed: 5 additions & 3 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
@@ -63,7 +63,9 @@ jobs:
6363
run: oca_init_test_database
6464
- name: Run tests
6565
run: oca_run_tests
66-
- uses: codecov/codecov-action@v1
66+
- uses: codecov/codecov-action@v4
67+
with:
68+
token: ${{ secrets.CODECOV_TOKEN }}
6769
- name: Update .pot files
6870
run: oca_export_and_push_pot https://x-access-token:${{ secrets.GIT_PUSH_TOKEN }}@github.com/${{ github.repository }}
6971
if: ${{ matrix.makepot == 'true' && github.event_name == 'push' && github.repository_owner == 'OCA' }}

.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: 26 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)
@@ -16,6 +16,8 @@ exclude: |
1616
readme/.*\.(rst|md)$|
1717
# Ignore build and dist directories in addons
1818
/build/|/dist/|
19+
# Ignore test files in addons
20+
/tests/samples/.*|
1921
# You don't usually want a bot to modify your legal texts
2022
(LICENSE.*|COPYING.*)
2123
default_language_version:
@@ -37,7 +39,7 @@ repos:
3739
language: fail
3840
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
3941
- repo: https://github.com/oca/maintainer-tools
40-
rev: 9a170331575a265c092ee6b24b845ec508e8ef75
42+
rev: d5fab7ee87fceee858a3d01048c78a548974d935
4143
hooks:
4244
# update the NOT INSTALLABLE ADDONS section above
4345
- id: oca-update-pre-commit-excluded-addons
@@ -56,8 +58,10 @@ repos:
5658
hooks:
5759
- id: oca-checks-odoo-module
5860
- id: oca-checks-po
61+
args:
62+
- --disable=po-pretty-format
5963
- repo: https://github.com/myint/autoflake
60-
rev: v1.4
64+
rev: v1.5.3
6165
hooks:
6266
- id: autoflake
6367
args:
@@ -71,25 +75,35 @@ repos:
7175
rev: 22.3.0
7276
hooks:
7377
- id: black
74-
- repo: https://github.com/pre-commit/mirrors-prettier
75-
rev: v2.1.2
78+
- repo: local
7679
hooks:
7780
- id: prettier
7881
name: prettier (with plugin-xml)
82+
entry: prettier
83+
args:
84+
- --write
85+
- --list-different
86+
- --ignore-unknown
87+
types: [text]
88+
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
89+
language: node
7990
additional_dependencies:
8091
- "prettier@2.1.2"
8192
- "@prettier/plugin-xml@0.12.0"
82-
args:
83-
- --plugin=@prettier/plugin-xml
84-
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
85-
- repo: https://github.com/pre-commit/mirrors-eslint
86-
rev: v7.8.1
93+
- repo: local
8794
hooks:
8895
- id: eslint
89-
verbose: true
96+
name: eslint
97+
entry: eslint
9098
args:
9199
- --color
92100
- --fix
101+
verbose: true
102+
types: [javascript]
103+
language: node
104+
additional_dependencies:
105+
- "eslint@7.8.1"
106+
- "eslint-plugin-jsdoc@"
93107
- repo: https://github.com/pre-commit/pre-commit-hooks
94108
rev: v3.2.0
95109
hooks:
@@ -136,7 +150,7 @@ repos:
136150
- --header
137151
- "# generated from manifests external_dependencies"
138152
- repo: https://github.com/PyCQA/flake8
139-
rev: 3.8.3
153+
rev: 5.0.0
140154
hooks:
141155
- id: flake8
142156
name: flake8

0 commit comments

Comments
 (0)