Skip to content

Commit be2d7e5

Browse files
committed
[IMP] update dotfiles
1 parent 6bdffd6 commit be2d7e5

File tree

3 files changed

+28
-11
lines changed

3 files changed

+28
-11
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.24
2+
_commit: v1.27
33
_src_path: git+https://github.com/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: {}

.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

+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/sbidoul/whool
42-
rev: v0.5
42+
rev: v1.2
4343
hooks:
4444
- id: whool-init
4545
- repo: https://github.com/oca/maintainer-tools
@@ -64,25 +64,37 @@ repos:
6464
hooks:
6565
- id: oca-checks-odoo-module
6666
- id: oca-checks-po
67-
- repo: https://github.com/pre-commit/mirrors-prettier
68-
rev: v2.7.1
67+
args:
68+
- --disable=po-pretty-format
69+
- repo: local
6970
hooks:
7071
- id: prettier
7172
name: prettier (with plugin-xml)
73+
entry: prettier
74+
args:
75+
- --write
76+
- --list-different
77+
- --ignore-unknown
78+
types: [text]
79+
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
80+
language: node
7281
additional_dependencies:
7382
- "prettier@2.7.1"
7483
- "@prettier/plugin-xml@2.2.0"
75-
args:
76-
- --plugin=@prettier/plugin-xml
77-
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
78-
- repo: https://github.com/pre-commit/mirrors-eslint
79-
rev: v8.24.0
84+
- repo: local
8085
hooks:
8186
- id: eslint
82-
verbose: true
87+
name: eslint
88+
entry: eslint
8389
args:
8490
- --color
8591
- --fix
92+
verbose: true
93+
types: [javascript]
94+
language: node
95+
additional_dependencies:
96+
- "eslint@8.24.0"
97+
- "eslint-plugin-jsdoc@"
8698
- repo: https://github.com/pre-commit/pre-commit-hooks
8799
rev: v4.3.0
88100
hooks:

0 commit comments

Comments
 (0)