Skip to content

Commit bd8fae3

Browse files
committed
[IMP] update dotfiles
1 parent 9165848 commit bd8fae3

6 files changed

Lines changed: 55 additions & 18 deletions

File tree

.copier-answers.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
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: Travis
5+
convert_readme_fragments_to_markdown: false
56
dependency_installation_mode: PIP
7+
enable_checklog_odoo: false
68
generate_requirements_txt: true
79
github_enable_stale_action: true
810
include_wkhtmltopdf: false
@@ -17,4 +19,6 @@ repo_slug: webhook
1719
repo_website: https://github.com/OCA/webhook
1820
travis_apt_packages: []
1921
travis_apt_sources: []
22+
use_pyproject_toml: false
23+
use_ruff: false
2024

.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

.gitignore

Lines changed: 14 additions & 0 deletions
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

.oca_hooks.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[MESSAGES_CONTROL]
2+
disable=xml-deprecated-data-node,xml-deprecated-tree-attribute

.pre-commit-config.yaml

Lines changed: 29 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)
@@ -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=webhook
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.1.2
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.1.2"
7892
- "@prettier/plugin-xml@0.12.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.8.1
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@7.8.1"
106+
- "eslint-plugin-jsdoc@"
90107
- repo: https://github.com/pre-commit/pre-commit-hooks
91108
rev: v3.2.0
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.8.3
153+
rev: 5.0.0
137154
hooks:
138155
- id: flake8
139156
name: flake8

0 commit comments

Comments
 (0)