Skip to content

Commit 97f63f6

Browse files
committed
[IMP] update dotfiles
1 parent 9c549e1 commit 97f63f6

File tree

6 files changed

+58
-21
lines changed

6 files changed

+58
-21
lines changed

.copier-answers.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# Do NOT update manually; changes here will be overwritten by Copier
2-
_commit: v1.17.2
2+
_commit: v1.29
33
_src_path: gh:oca/oca-addons-repo-template
44
ci: GitHub
5+
convert_readme_fragments_to_markdown: false
6+
enable_checklog_odoo: false
57
generate_requirements_txt: true
68
github_check_license: true
79
github_ci_extra_env: {}
@@ -19,4 +21,6 @@ repo_description: 'TODO: add repo description.'
1921
repo_name: wms
2022
repo_slug: wms
2123
repo_website: https://github.com/OCA/wms
24+
use_pyproject_toml: false
25+
use_ruff: false
2226

.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/stale.yml

+2-2
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

+5-3
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

+14
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ __pycache__/
33
*.py[cod]
44
/.venv
55
/.pytest_cache
6+
/.ruff_cache
67

78
# C extensions
89
*.so
@@ -24,6 +25,19 @@ var/
2425
*.egg
2526
*.eggs
2627

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+
2741
# Installer logs
2842
pip-log.txt
2943
pip-delete-this-directory.txt

.pre-commit-config.yaml

+29-12
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)
@@ -14,6 +14,10 @@ exclude: |
1414
^docs/_templates/.*\.html$|
1515
# Don't bother non-technical authors with formatting issues in docs
1616
readme/.*\.(rst|md)$|
17+
# Ignore build and dist directories in addons
18+
/build/|/dist/|
19+
# Ignore test files in addons
20+
/tests/samples/.*|
1721
# You don't usually want a bot to modify your legal texts
1822
(LICENSE.*|COPYING.*)
1923
default_language_version:
@@ -35,7 +39,7 @@ repos:
3539
language: fail
3640
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
3741
- repo: https://github.com/oca/maintainer-tools
38-
rev: 969238e47c07d0c40573acff81d170f63245d738
42+
rev: d5fab7ee87fceee858a3d01048c78a548974d935
3943
hooks:
4044
# update the NOT INSTALLABLE ADDONS section above
4145
- id: oca-update-pre-commit-excluded-addons
@@ -48,13 +52,16 @@ repos:
4852
- --org-name=OCA
4953
- --repo-name=wms
5054
- --if-source-changed
55+
- --keep-source-digest
5156
- repo: https://github.com/OCA/odoo-pre-commit-hooks
5257
rev: v0.0.25
5358
hooks:
5459
- id: oca-checks-odoo-module
5560
- id: oca-checks-po
61+
args:
62+
- --disable=po-pretty-format
5663
- repo: https://github.com/myint/autoflake
57-
rev: v1.4
64+
rev: v1.5.3
5865
hooks:
5966
- id: autoflake
6067
args:
@@ -68,25 +75,35 @@ repos:
6875
rev: 22.3.0
6976
hooks:
7077
- id: black
71-
- repo: https://github.com/pre-commit/mirrors-prettier
72-
rev: v2.4.1
78+
- repo: local
7379
hooks:
7480
- id: prettier
7581
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
7690
additional_dependencies:
7791
- "prettier@2.4.1"
7892
- "@prettier/plugin-xml@1.1.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: v7.32.0
93+
- repo: local
8494
hooks:
8595
- id: eslint
86-
verbose: true
96+
name: eslint
97+
entry: eslint
8798
args:
8899
- --color
89100
- --fix
101+
verbose: true
102+
types: [javascript]
103+
language: node
104+
additional_dependencies:
105+
- "eslint@v7.32.0"
106+
- "eslint-plugin-jsdoc@"
90107
- repo: https://github.com/pre-commit/pre-commit-hooks
91108
rev: v4.0.1
92109
hooks:
@@ -133,7 +150,7 @@ repos:
133150
- --header
134151
- "# generated from manifests external_dependencies"
135152
- repo: https://github.com/PyCQA/flake8
136-
rev: 3.9.2
153+
rev: 5.0.0
137154
hooks:
138155
- id: flake8
139156
name: flake8

0 commit comments

Comments
 (0)