From d1a9d947f22f3037d396f5faa44ebb58ebde9d0c Mon Sep 17 00:00:00 2001 From: oca-git-bot Date: Sun, 12 Mar 2023 21:35:21 +0100 Subject: [PATCH] [IMP] update dotfiles [ci skip] --- .copier-answers.yml | 9 ++++++++- .github/workflows/pre-commit.yml | 2 +- .github/workflows/test.yml | 2 +- .gitignore | 1 - .pre-commit-config.yaml | 17 ++++++++++++++--- .pylintrc | 2 ++ .pylintrc-mandatory | 1 + 7 files changed, 27 insertions(+), 7 deletions(-) diff --git a/.copier-answers.yml b/.copier-answers.yml index fd109745..98505a15 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,9 +1,15 @@ # Do NOT update manually; changes here will be overwritten by Copier -_commit: v1.6.1 +_commit: v1.14.2 _src_path: https://github.com/OCA/oca-addons-repo-template.git ci: GitHub dependency_installation_mode: PIP 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 +github_enforce_dev_status_compatibility: true include_wkhtmltopdf: false odoo_version: 13.0 org_name: Odoo Community Association (OCA) @@ -15,3 +21,4 @@ repo_slug: hr-expense repo_website: https://github.com/OCA/hr-expense travis_apt_packages: [] travis_apt_sources: [] + diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index aafa1388..0083b5c1 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -11,7 +11,7 @@ on: jobs: pre-commit: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e7364499..112858db 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,7 @@ jobs: fi done test: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 container: ${{ matrix.container }} name: ${{ matrix.name }} strategy: diff --git a/.gitignore b/.gitignore index 818770fb..9c283fd4 100644 --- a/.gitignore +++ b/.gitignore @@ -15,7 +15,6 @@ build/ develop-eggs/ dist/ eggs/ -lib/ lib64/ parts/ sdist/ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9852f76a..18401619 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ exclude: | # You don't usually want a bot to modify your legal texts (LICENSE.*|COPYING.*) default_language_version: - python: python3 + python: python3.8 node: "14.13.0" repos: - repo: local @@ -27,6 +27,11 @@ repos: entry: found forbidden files; remove them language: fail files: "\\.rej$" + - id: en-po-files + name: en.po files cannot exist + entry: found a en.po file + language: fail + files: '[a-zA-Z0-9_]*/i18n/en\.po$' - repo: https://github.com/oca/maintainer-tools rev: ab1d7f6 hooks: @@ -102,10 +107,16 @@ repos: name: isort except __init__.py exclude: /__init__\.py$ - repo: https://github.com/acsone/setuptools-odoo - rev: 2.5.2 + rev: 3.1.8 hooks: - id: setuptools-odoo-make-default - - repo: https://gitlab.com/pycqa/flake8 + - id: setuptools-odoo-get-requirements + args: + - --output + - requirements.txt + - --header + - "# generated from manifests external_dependencies" + - repo: https://github.com/PyCQA/flake8 rev: 3.7.9 hooks: - id: flake8 diff --git a/.pylintrc b/.pylintrc index c3d75e12..20d850df 100644 --- a/.pylintrc +++ b/.pylintrc @@ -1,3 +1,5 @@ + + [MASTER] load-plugins=pylint_odoo score=n diff --git a/.pylintrc-mandatory b/.pylintrc-mandatory index 3e19630b..1c8f3771 100644 --- a/.pylintrc-mandatory +++ b/.pylintrc-mandatory @@ -1,3 +1,4 @@ + [MASTER] load-plugins=pylint_odoo score=n