Compare commits
4 Commits
16.0
...
16.0-ci-pr
Author | SHA1 | Date | |
---|---|---|---|
|
b63c4b5335 | ||
|
1d4364b048 | ||
|
6b36376f6f | ||
|
39aef0d942 |
@@ -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
|
@@ -44,19 +44,15 @@ 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
|
||||||
entry:
|
args: ["https://github.com/elabore-coop/event-tools"]
|
||||||
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
|
||||||
entry:
|
args:
|
||||||
bash -c 'oca-gen-addon-readme
|
- --addons-dir=.
|
||||||
--addons-dir=.
|
- --branch=16.0
|
||||||
--branch=$(git symbolic-ref
|
- --org-name=OCA
|
||||||
refs/remotes/origin/HEAD | sed "s@^refs/remotes/origin/@@")
|
- --repo-name=event-tools
|
||||||
--repo-name=$(basename $(git rev-parse --show-toplevel))
|
- --if-source-changed
|
||||||
--org-name="Elabore"
|
- --keep-source-digest
|
||||||
--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:
|
||||||
|
15
.ruff.toml
15
.ruff.toml
@@ -17,11 +17,22 @@ exclude = ["setup/*"]
|
|||||||
exclude = ["setup/*"]
|
exclude = ["setup/*"]
|
||||||
|
|
||||||
[lint.per-file-ignores]
|
[lint.per-file-ignores]
|
||||||
"__init__.py" = ["F401", "I001"] # ignore unused and unsorted imports in __init__.py
|
"__init__.py" = [
|
||||||
|
"F401",
|
||||||
|
"I001",
|
||||||
|
] # ignore unused and unsorted imports in __init__.py
|
||||||
"__manifest__.py" = ["B018"] # useless expression
|
"__manifest__.py" = ["B018"] # useless expression
|
||||||
|
|
||||||
[lint.isort]
|
[lint.isort]
|
||||||
section-order = ["future", "standard-library", "third-party", "odoo", "odoo-addons", "first-party", "local-folder"]
|
section-order = [
|
||||||
|
"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