Compare commits
2 Commits
16.0-ci-pr
...
16.0
Author | SHA1 | Date | |
---|---|---|---|
b318bb4201 | |||
4d6ecb53e3 |
@@ -17,4 +17,4 @@ end_of_line = unset
|
|||||||
indent_size = unset
|
indent_size = unset
|
||||||
indent_style = unset
|
indent_style = unset
|
||||||
insert_final_newline = false
|
insert_final_newline = false
|
||||||
trim_trailing_whitespace = false
|
trim_trailing_whitespace = false
|
||||||
|
@@ -185,4 +185,4 @@ rules:
|
|||||||
requireReturnDescription: false
|
requireReturnDescription: false
|
||||||
requireReturnType: false
|
requireReturnType: false
|
||||||
valid-typeof: warn
|
valid-typeof: warn
|
||||||
yoda: warn
|
yoda: warn
|
||||||
|
@@ -15,10 +15,10 @@ jobs:
|
|||||||
python-version: "3.11"
|
python-version: "3.11"
|
||||||
- name: Get python version
|
- name: Get python version
|
||||||
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
|
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
|
||||||
- uses: actions/cache@v4
|
# - uses: actions/cache@v4
|
||||||
with:
|
# with:
|
||||||
path: ~/.cache/pre-commit
|
# path: ~/.cache/pre-commit
|
||||||
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
|
# key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
|
||||||
- name: Install pre-commit
|
- name: Install pre-commit
|
||||||
run: pip install pre-commit
|
run: pip install pre-commit
|
||||||
- name: Run pre-commit
|
- name: Run pre-commit
|
||||||
@@ -39,4 +39,4 @@ jobs:
|
|||||||
echo "Please check-in the following files:"
|
echo "Please check-in the following files:"
|
||||||
echo "$newfiles"
|
echo "$newfiles"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
@@ -44,15 +44,19 @@ repos:
|
|||||||
# update the NOT INSTALLABLE ADDONS section above
|
# update the NOT INSTALLABLE ADDONS section above
|
||||||
- id: oca-update-pre-commit-excluded-addons
|
- id: oca-update-pre-commit-excluded-addons
|
||||||
- id: oca-fix-manifest-website
|
- id: oca-fix-manifest-website
|
||||||
args: ["https://github.com/elabore-coop/event-tools"]
|
entry:
|
||||||
|
bash -c 'oca-fix-manifest-website "https://git.elabore.coop/elabore/$(basename
|
||||||
|
$(git rev-parse --show-toplevel))"'
|
||||||
- id: oca-gen-addon-readme
|
- id: oca-gen-addon-readme
|
||||||
args:
|
entry:
|
||||||
- --addons-dir=.
|
bash -c 'oca-gen-addon-readme
|
||||||
- --branch=16.0
|
--addons-dir=.
|
||||||
- --org-name=OCA
|
--branch=$(git symbolic-ref
|
||||||
- --repo-name=event-tools
|
refs/remotes/origin/HEAD | sed "s@^refs/remotes/origin/@@")
|
||||||
- --if-source-changed
|
--repo-name=$(basename $(git rev-parse --show-toplevel))
|
||||||
- --keep-source-digest
|
--org-name="Elabore"
|
||||||
|
--if-source-changed --keep-source-digest'
|
||||||
|
|
||||||
- repo: https://github.com/OCA/odoo-pre-commit-hooks
|
- repo: https://github.com/OCA/odoo-pre-commit-hooks
|
||||||
rev: v0.1.4
|
rev: v0.1.4
|
||||||
hooks:
|
hooks:
|
||||||
@@ -143,4 +147,4 @@ repos:
|
|||||||
verbose: true
|
verbose: true
|
||||||
- id: pylint_odoo
|
- id: pylint_odoo
|
||||||
args:
|
args:
|
||||||
- --rcfile=.pylintrc-mandatory
|
- --rcfile=.pylintrc-mandatory
|
||||||
|
@@ -5,4 +5,4 @@ printWidth: 88
|
|||||||
proseWrap: always
|
proseWrap: always
|
||||||
semi: true
|
semi: true
|
||||||
trailingComma: "es5"
|
trailingComma: "es5"
|
||||||
xmlWhitespaceSensitivity: "strict"
|
xmlWhitespaceSensitivity: "strict"
|
||||||
|
@@ -120,4 +120,4 @@ enable=anomalous-backslash-in-string,
|
|||||||
[REPORTS]
|
[REPORTS]
|
||||||
msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}
|
msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}
|
||||||
output-format=colorized
|
output-format=colorized
|
||||||
reports=no
|
reports=no
|
||||||
|
@@ -95,4 +95,4 @@ enable=anomalous-backslash-in-string,
|
|||||||
[REPORTS]
|
[REPORTS]
|
||||||
msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}
|
msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}
|
||||||
output-format=colorized
|
output-format=colorized
|
||||||
reports=no
|
reports=no
|
||||||
|
23
.ruff.toml
23
.ruff.toml
@@ -6,9 +6,9 @@ fix = true
|
|||||||
extend-select = [
|
extend-select = [
|
||||||
"B",
|
"B",
|
||||||
"C90",
|
"C90",
|
||||||
"E501", # line too long (default 88)
|
"E501", # line too long (default 88)
|
||||||
"I", # isort
|
"I", # isort
|
||||||
"UP", # pyupgrade
|
"UP", # pyupgrade
|
||||||
]
|
]
|
||||||
extend-safe-fixes = ["UP008"]
|
extend-safe-fixes = ["UP008"]
|
||||||
exclude = ["setup/*"]
|
exclude = ["setup/*"]
|
||||||
@@ -17,22 +17,11 @@ exclude = ["setup/*"]
|
|||||||
exclude = ["setup/*"]
|
exclude = ["setup/*"]
|
||||||
|
|
||||||
[lint.per-file-ignores]
|
[lint.per-file-ignores]
|
||||||
"__init__.py" = [
|
"__init__.py" = ["F401", "I001"] # ignore unused and unsorted imports in __init__.py
|
||||||
"F401",
|
"__manifest__.py" = ["B018"] # useless expression
|
||||||
"I001",
|
|
||||||
] # ignore unused and unsorted imports in __init__.py
|
|
||||||
"__manifest__.py" = ["B018"] # useless expression
|
|
||||||
|
|
||||||
[lint.isort]
|
[lint.isort]
|
||||||
section-order = [
|
section-order = ["future", "standard-library", "third-party", "odoo", "odoo-addons", "first-party", "local-folder"]
|
||||||
"future",
|
|
||||||
"standard-library",
|
|
||||||
"third-party",
|
|
||||||
"odoo",
|
|
||||||
"odoo-addons",
|
|
||||||
"first-party",
|
|
||||||
"local-folder",
|
|
||||||
]
|
|
||||||
|
|
||||||
[lint.isort.sections]
|
[lint.isort.sections]
|
||||||
"odoo" = ["odoo"]
|
"odoo" = ["odoo"]
|
||||||
|
Reference in New Issue
Block a user