forked from OCA/l10n-switzerland
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #542 from OCA/14.0-ocabot-update-dotfiles
Syncing from upstream OCA/l10n-switzerland (14.0-ocabot-update-dotfiles)
- Loading branch information
Showing
196 changed files
with
15,666 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,26 @@ | ||
# Do NOT update manually; changes here will be overwritten by Copier | ||
_commit: v1.17.2 | ||
_commit: v1.29 | ||
_src_path: gh:oca/oca-addons-repo-template | ||
ci: Travis | ||
dependency_installation_mode: PIP | ||
ci: GitHub | ||
convert_readme_fragments_to_markdown: false | ||
enable_checklog_odoo: false | ||
generate_requirements_txt: true | ||
github_check_license: true | ||
github_ci_extra_env: {} | ||
github_enable_codecov: true | ||
github_enable_makepot: true | ||
github_enable_stale_action: true | ||
include_wkhtmltopdf: false | ||
github_enforce_dev_status_compatibility: true | ||
include_wkhtmltopdf: true | ||
odoo_test_flavor: Both | ||
odoo_version: 14.0 | ||
org_name: Odoo Community Association (OCA) | ||
org_slug: OCA | ||
rebel_module_groups: [] | ||
repo_description: 'TODO: add repo description.' | ||
repo_name: l10n-switzerland | ||
repo_description: Swiss Localization Modules | ||
repo_name: Swiss Localization | ||
repo_slug: l10n-switzerland | ||
repo_website: https://github.com/OCA/l10n-switzerland | ||
travis_apt_packages: [] | ||
travis_apt_sources: [] | ||
use_pyproject_toml: false | ||
use_ruff: false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: tests | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "14.0*" | ||
push: | ||
branches: | ||
- "14.0" | ||
- "14.0-ocabot-*" | ||
|
||
jobs: | ||
unreleased-deps: | ||
runs-on: ubuntu-latest | ||
name: Detect unreleased dependencies | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
for reqfile in requirements.txt test-requirements.txt ; do | ||
if [ -f ${reqfile} ] ; then | ||
result=0 | ||
# reject non-comment lines that contain a / (i.e. URLs, relative paths) | ||
grep "^[^#].*/" ${reqfile} || result=$? | ||
if [ $result -eq 0 ] ; then | ||
echo "Unreleased dependencies found in ${reqfile}." | ||
exit 1 | ||
fi | ||
fi | ||
done | ||
test: | ||
runs-on: ubuntu-22.04 | ||
container: ${{ matrix.container }} | ||
name: ${{ matrix.name }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- container: ghcr.io/oca/oca-ci/py3.6-odoo14.0:latest | ||
name: test with Odoo | ||
- container: ghcr.io/oca/oca-ci/py3.6-ocb14.0:latest | ||
name: test with OCB | ||
makepot: "true" | ||
services: | ||
postgres: | ||
image: postgres:9.6 | ||
env: | ||
POSTGRES_USER: odoo | ||
POSTGRES_PASSWORD: odoo | ||
POSTGRES_DB: odoo | ||
ports: | ||
- 5432:5432 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- name: Install addons and dependencies | ||
run: oca_install_addons | ||
- name: Check licenses | ||
run: manifestoo -d . check-licenses | ||
- name: Check development status | ||
run: manifestoo -d . check-dev-status --default-dev-status=Beta | ||
- name: Initialize test db | ||
run: oca_init_test_database | ||
- name: Run tests | ||
run: oca_run_tests | ||
- uses: codecov/codecov-action@v4 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
- name: Update .pot files | ||
run: oca_export_and_push_pot https://x-access-token:${{ secrets.GIT_PUSH_TOKEN }}@github.com/${{ github.repository }} | ||
if: ${{ matrix.makepot == 'true' && github.event_name == 'push' && github.repository_owner == 'OCA' }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[MESSAGES_CONTROL] | ||
disable=xml-deprecated-data-node,xml-deprecated-tree-attribute |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ exclude: | | |
# Files and folders generated by bots, to avoid loops | ||
^setup/|/static/description/index\.html$| | ||
# We don't want to mess with tool-generated files | ||
.svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/| | ||
.svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|^eslint.config.cjs|^prettier.config.cjs| | ||
# Maybe reactivate this when all README files include prettier ignore tags? | ||
^README\.md$| | ||
# Library files can have extraneous formatting (even minimized) | ||
|
@@ -14,6 +14,10 @@ exclude: | | |
^docs/_templates/.*\.html$| | ||
# Don't bother non-technical authors with formatting issues in docs | ||
readme/.*\.(rst|md)$| | ||
# Ignore build and dist directories in addons | ||
/build/|/dist/| | ||
# Ignore test files in addons | ||
/tests/samples/.*| | ||
# You don't usually want a bot to modify your legal texts | ||
(LICENSE.*|COPYING.*) | ||
default_language_version: | ||
|
@@ -35,7 +39,7 @@ repos: | |
language: fail | ||
files: '[a-zA-Z0-9_]*/i18n/en\.po$' | ||
- repo: https://github.com/oca/maintainer-tools | ||
rev: 969238e47c07d0c40573acff81d170f63245d738 | ||
rev: d5fab7ee87fceee858a3d01048c78a548974d935 | ||
hooks: | ||
# update the NOT INSTALLABLE ADDONS section above | ||
- id: oca-update-pre-commit-excluded-addons | ||
|
@@ -48,13 +52,16 @@ repos: | |
- --org-name=OCA | ||
- --repo-name=l10n-switzerland | ||
- --if-source-changed | ||
- --keep-source-digest | ||
- repo: https://github.com/OCA/odoo-pre-commit-hooks | ||
rev: v0.0.25 | ||
hooks: | ||
- id: oca-checks-odoo-module | ||
- id: oca-checks-po | ||
args: | ||
- --disable=po-pretty-format | ||
- repo: https://github.com/myint/autoflake | ||
rev: v1.4 | ||
rev: v1.5.3 | ||
hooks: | ||
- id: autoflake | ||
args: | ||
|
@@ -68,27 +75,45 @@ repos: | |
rev: 22.3.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v2.1.2 | ||
- repo: local | ||
hooks: | ||
- id: prettier | ||
name: prettier (with plugin-xml) | ||
entry: prettier | ||
args: | ||
- --write | ||
- --list-different | ||
- --ignore-unknown | ||
types: [text] | ||
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$ | ||
language: node | ||
additional_dependencies: | ||
- "[email protected]" | ||
- "@prettier/[email protected]" | ||
<<<<<<< before updating | ||
args: | ||
- --plugin=@prettier/plugin-xml | ||
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$ | ||
# For ebill_paynet don't format the message template files | ||
exclude: /messages/.*\.xml$|/components/wsdl/.*\.xml$|/tests/examples/.*\.xml$ | ||
- repo: https://github.com/pre-commit/mirrors-eslint | ||
rev: v7.8.1 | ||
======= | ||
- repo: local | ||
>>>>>>> after updating | ||
hooks: | ||
- id: eslint | ||
verbose: true | ||
name: eslint | ||
entry: eslint | ||
args: | ||
- --color | ||
- --fix | ||
verbose: true | ||
types: [javascript] | ||
language: node | ||
additional_dependencies: | ||
- "[email protected]" | ||
- "eslint-plugin-jsdoc@" | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.2.0 | ||
hooks: | ||
|
@@ -135,7 +160,7 @@ repos: | |
- --header | ||
- "# generated from manifests external_dependencies" | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 3.8.3 | ||
rev: 5.0.0 | ||
hooks: | ||
- id: flake8 | ||
name: flake8 | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.