diff --git a/.copier-answers.yml b/.copier-answers.yml index bcf805f7e3..90dff54239 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,5 +1,5 @@ # Do NOT update manually; changes here will be overwritten by Copier -_commit: v1.3.6 +_commit: v1.5.1 _src_path: gh:oca/oca-addons-repo-template ci: Travis dependency_installation_mode: PIP diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 80ab1a2117..06a555e735 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -17,4 +17,21 @@ jobs: # where we are not using black > 21. Older black versions won't work with # Python 3.9.8+, and we can't bump black without reformatting. python-version: "3.9.7" - - uses: pre-commit/action@v2.0.0 + - name: Get python version + run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV + - uses: actions/cache@v1 + with: + path: ~/.cache/pre-commit + key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }} + - name: Install pre-commit + run: pip install pre-commit + - name: Run pre-commit + run: pre-commit run --all-files --show-diff-on-failure --color=always + - name: Check that all files generated by pre-commit are in git + run: | + newfiles="$(git ls-files --others --exclude-from=.gitignore)" + if [ "$newfiles" != "" ] ; then + echo "Please check-in the following files:" + echo "$newfiles" + exit 1 + fi diff --git a/.pylintrc-mandatory b/.pylintrc-mandatory index edd36782a8..08bca3cefe 100644 --- a/.pylintrc-mandatory +++ b/.pylintrc-mandatory @@ -24,6 +24,7 @@ enable=anomalous-backslash-in-string, development-status-allowed, duplicate-id-csv, duplicate-key, + duplicate-xml-fields, duplicate-xml-record-id, eval-referenced, eval-used, diff --git a/README.md b/README.md index 0ad624be27..dc6078a18b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Runbot Status](https://runbot.odoo-community.org/runbot/badge/flat/230/14.0.svg)](https://runbot.odoo-community.org/runbot/repo/github-com-oca-queue-230) +[![Runboat](https://img.shields.io/badge/runboat-Try%20me-875A7B.png)](https://runboat.odoo-community.org/builds?repo=OCA/queue&target_branch=14.0) [![Build Status](https://travis-ci.com/OCA/queue.svg?branch=14.0)](https://travis-ci.com/OCA/queue) [![codecov](https://codecov.io/gh/OCA/queue/branch/14.0/graph/badge.svg)](https://codecov.io/gh/OCA/queue) [![Translation Status](https://translation.odoo-community.org/widgets/queue-14-0/-/svg-badge.svg)](https://translation.odoo-community.org/engage/queue-14-0/?utm_source=widget) @@ -15,23 +15,7 @@ TODO: add repo description. [//]: # (addons) -Available addons ----------------- -addon | version | maintainers | summary ---- | --- | --- | --- -[base_import_async](base_import_async/) | 14.0.1.0.1 | | Import CSV files in the background -[queue_job](queue_job/) | 14.0.2.3.0 | [![guewen](https://github.com/guewen.png?size=30px)](https://github.com/guewen) | Job Queue -[queue_job_cron](queue_job_cron/) | 14.0.1.1.0 | | Scheduled Actions as Queue Jobs -[queue_job_subscribe](queue_job_subscribe/) | 14.0.1.0.0 | | Control which users are subscribed to queue job notifications -[test_base_import_async](test_base_import_async/) | 14.0.1.0.1 | | Test suite for base_import_async. Normally you don't need to install this. -[test_queue_job](test_queue_job/) | 14.0.2.0.0 | | Queue Job Tests - - -Unported addons ---------------- -addon | version | maintainers | summary ---- | --- | --- | --- -[base_export_async](base_export_async/) | 12.0.1.0.0 (unported) | | Asynchronous export with job queue +This part will be replaced when running the oca-gen-addons-table script from OCA/maintainer-tools. [//]: # (end addons) diff --git a/queue_job/views/queue_job_views.xml b/queue_job/views/queue_job_views.xml index 93bcc1a205..86bf527134 100644 --- a/queue_job/views/queue_job_views.xml +++ b/queue_job/views/queue_job_views.xml @@ -128,7 +128,7 @@ widget="remaining_days" string="Remaining days to execute" optional="hide" - /> + />