Skip to content

Commit a9e1caa

Browse files
[REM] hr-expense: remove _do_create_moves from hr_expense_sheet inheritance.
- the _do_create_moves from hr_expense_sheet inheritance is not longer required, it has been removed.
1 parent 38e6859 commit a9e1caa

22 files changed

+497
-372
lines changed

Diff for: .gitignore

+16
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,19 @@ docs/_build/
8282

8383
# OCA rules
8484
!static/lib/
85+
86+
# pre-commit-vauxoo
87+
.bandit*
88+
.config/
89+
.editorconfig
90+
.eslintrc*
91+
.flake8*
92+
.isort.cfg
93+
.oca_hooks*
94+
.pre-commit*.yaml
95+
.prettierrc.yml
96+
.pylintrc*
97+
bandit*.yaml
98+
doc8.ini
99+
pyproject.toml
100+

Diff for: .pre-commit-config.yaml

+56-102
Original file line numberDiff line numberDiff line change
@@ -1,100 +1,74 @@
11
exclude: |
2-
(?x)
3-
# NOT INSTALLABLE ADDONS
4-
# END NOT INSTALLABLE ADDONS
5-
# Files and folders generated by bots, to avoid loops
6-
^setup/|/static/description/index\.html$|
7-
# We don't want to mess with tool-generated files
8-
.svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|
9-
# Maybe reactivate this when all README files include prettier ignore tags?
10-
^README\.md$|
11-
# Library files can have extraneous formatting (even minimized)
12-
/static/(src/)?lib/|
13-
# Repos using Sphinx to generate docs don't need prettying
14-
^docs/_templates/.*\.html$|
15-
# Don't bother non-technical authors with formatting issues in docs
16-
readme/.*\.(rst|md)$|
17-
# Ignore build and dist directories in addons
18-
/build/|/dist/|
19-
# Ignore test files in addons
20-
/tests/samples/.*|
21-
# You don't usually want a bot to modify your legal texts
22-
(LICENSE.*|COPYING.*)
2+
(?x)(
3+
# NOT INSTALLABLE ADDONS
4+
# END NOT INSTALLABLE ADDONS
5+
# Files and folders generated by bots, to avoid loops
6+
^setup/|/static/description/index\.html$|
7+
# We don't want to mess with tool-generated files
8+
.svg$|/tests/([^/]+/)?cassettes/|
9+
# Maybe reactivate this when all README files include prettier ignore tags?
10+
^README\.md$|
11+
# Library files can have extraneous formatting (even minimized)
12+
/static/(src/)?lib/|
13+
# Repos using Sphinx to generate docs don't need prettying
14+
^docs/_templates/.*\.html$|
15+
# You don't usually want a bot to modify your legal texts
16+
(LICENSE.*|COPYING.*)|
17+
(\.travis\.yml|\.gitlab\-ci\.yml|\.pre\-commit\-config*\.yaml)|
18+
# It was ignored from original MQT since that there is not init file
19+
(/migrations/1[0-4])|
20+
(/doc/|/docs/)|
21+
# Legacy modules absa: galaxy
22+
(galaxy/)|
23+
# External scripts
24+
(scripts/)
25+
)
2326
default_language_version:
2427
python: python3
25-
node: "16.17.0"
28+
node: "14.13.0"
2629
repos:
27-
- repo: local
28-
hooks:
29-
# These files are most likely copier diff rejection junks; if found,
30-
# review them manually, fix the problem (if needed) and remove them
31-
- id: forbidden-files
32-
name: forbidden files
33-
entry: found forbidden files; remove them
34-
language: fail
35-
files: "\\.rej$"
36-
- id: en-po-files
37-
name: en.po files cannot exist
38-
entry: found a en.po file
39-
language: fail
40-
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
41-
- repo: https://github.com/sbidoul/whool
42-
rev: v0.5
43-
hooks:
44-
- id: whool-init
45-
- repo: https://github.com/oca/maintainer-tools
46-
rev: d5fab7ee87fceee858a3d01048c78a548974d935
30+
- repo: https://github.com/PyCQA/flake8
31+
rev: 6.1.0
4732
hooks:
48-
# update the NOT INSTALLABLE ADDONS section above
49-
- id: oca-update-pre-commit-excluded-addons
50-
- id: oca-fix-manifest-website
51-
args: ["https://github.com/OCA/hr-expense"]
52-
- id: oca-gen-addon-readme
53-
args:
54-
- --addons-dir=.
55-
- --branch=17.0
56-
- --org-name=OCA
57-
- --repo-name=hr-expense
58-
- --if-source-changed
59-
- --keep-source-digest
60-
- --convert-fragments-to-markdown
61-
- id: oca-gen-external-dependencies
62-
- repo: https://github.com/OCA/odoo-pre-commit-hooks
63-
rev: v0.0.25
64-
hooks:
65-
- id: oca-checks-odoo-module
66-
- id: oca-checks-po
67-
- repo: https://github.com/pre-commit/mirrors-prettier
68-
rev: v2.7.1
33+
- id: flake8
34+
name: flake8 mandatory checks
35+
- repo: https://github.com/OCA/pylint-odoo
36+
rev: v9.0.5
6937
hooks:
70-
- id: prettier
71-
name: prettier (with plugin-xml)
72-
additional_dependencies:
73-
74-
- "@prettier/[email protected]"
38+
- id: pylint_odoo
39+
name: pylint mandatory checks
7540
args:
76-
- --plugin=@prettier/plugin-xml
77-
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
41+
# External scripts
42+
- --disable=R0000
7843
- repo: https://github.com/pre-commit/mirrors-eslint
79-
rev: v8.24.0
44+
rev: v8.51.0
8045
hooks:
8146
- id: eslint
82-
verbose: true
47+
name: javascript mandatory checks
8348
args:
8449
- --color
85-
- --fix
50+
- --config=.eslintrc.json
51+
# - --fix
52+
- repo: local
53+
hooks:
54+
- id: name-non-ascii
55+
name: Use only ASCII (no accents or special characters) for filenames and directory names
56+
description: It may raise errors on OS without locale settings configured
57+
entry: Use only ASCII (no accents or special characters) for filenames and directory names
58+
language: fail
59+
files: '[^\x00-\x7F]'
60+
- id: vx-check-deactivate
61+
name: deactivate.jinja syntax check.
62+
description: Validate deactivate.jinja files' syntax.
63+
entry: vx-check-deactivate
64+
args: []
65+
language: python
66+
types: [jinja]
67+
files: ^deactivate\.jinja$
8668
- repo: https://github.com/pre-commit/pre-commit-hooks
87-
rev: v4.3.0
69+
rev: v4.5.0
8870
hooks:
89-
- id: trailing-whitespace
90-
# exclude autogenerated files
91-
exclude: /README\.rst$|\.pot?$
92-
- id: end-of-file-fixer
93-
# exclude autogenerated files
94-
exclude: /README\.rst$|\.pot?$
9571
- id: debug-statements
96-
- id: fix-encoding-pragma
97-
args: ["--remove"]
9872
- id: check-case-conflict
9973
- id: check-docstring-first
10074
- id: check-executables-have-shebangs
@@ -103,23 +77,3 @@ repos:
10377
exclude: /README\.rst$|^docs/.*\.rst$
10478
- id: check-symlinks
10579
- id: check-xml
106-
- id: mixed-line-ending
107-
args: ["--fix=lf"]
108-
- repo: https://github.com/astral-sh/ruff-pre-commit
109-
rev: v0.1.3
110-
hooks:
111-
- id: ruff
112-
args: [--fix, --exit-non-zero-on-fix]
113-
- id: ruff-format
114-
- repo: https://github.com/OCA/pylint-odoo
115-
rev: v9.0.4
116-
hooks:
117-
- id: pylint_odoo
118-
name: pylint with optional checks
119-
args:
120-
- --rcfile=.pylintrc
121-
- --exit-zero
122-
verbose: true
123-
- id: pylint_odoo
124-
args:
125-
- --rcfile=.pylintrc-mandatory

Diff for: .prettierrc.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Defaults for all prettier-supported languages.
21
# Prettier will complete this with settings from .editorconfig file.
32
bracketSpacing: false
4-
printWidth: 88
3+
printWidth: 119
54
proseWrap: always
65
semi: true
76
trailingComma: "es5"
87
xmlWhitespaceSensitivity: "strict"
8+
xmlSelfClosingSpace: true

0 commit comments

Comments
 (0)