From 6fa2ae3e1a512e8beba756fac7b4ee753d4122fd Mon Sep 17 00:00:00 2001 From: "Aung Ko Ko Lin (Quartile)" <45355704+AungKoKoLin1997@users.noreply.github.com> Date: Thu, 4 Jul 2024 19:56:09 +0700 Subject: [PATCH] [UPD] dotfiles (#105) --- .copier-answers.yml | 14 ++++---- .github/workflows/stale.yml | 69 ------------------------------------- .github/workflows/test.yml | 1 - .gitignore | 10 ++++++ .oca_hooks.cfg | 2 ++ .pylintrc | 4 +-- .pylintrc-mandatory | 4 +-- README.md | 2 +- 8 files changed, 23 insertions(+), 83 deletions(-) delete mode 100644 .github/workflows/stale.yml create mode 100644 .oca_hooks.cfg diff --git a/.copier-answers.yml b/.copier-answers.yml index aafa666..9dbea85 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,25 +1,23 @@ # Do NOT update manually; changes here will be overwritten by Copier -_commit: v1.17.1 +_commit: '1.23' _src_path: https://github.com/OCA/oca-addons-repo-template.git ci: GitHub -dependency_installation_mode: PIP +convert_readme_fragments_to_markdown: false generate_requirements_txt: true github_check_license: true github_ci_extra_env: {} -github_enable_codecov: true +github_enable_codecov: false github_enable_makepot: false -github_enable_stale_action: true +github_enable_stale_action: false github_enforce_dev_status_compatibility: false include_wkhtmltopdf: false odoo_test_flavor: OCB odoo_version: 12.0 -org_name: Quartile Limited +org_name: '' org_slug: qrtl rebel_module_groups: [] -repo_description: null +repo_description: '' repo_name: ASX Custom repo_slug: asx-custom repo_website: https://www.quartile.co -travis_apt_packages: [] -travis_apt_sources: [] diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml deleted file mode 100644 index 1693a12..0000000 --- a/.github/workflows/stale.yml +++ /dev/null @@ -1,69 +0,0 @@ -name: Mark stale issues and pull requests - -on: - schedule: - - cron: "0 12 * * 0" - -jobs: - stale: - runs-on: ubuntu-latest - steps: - - name: Stale PRs and issues policy - uses: actions/stale@v4 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - # General settings. - ascending: true - remove-stale-when-updated: true - # Pull Requests settings. - # 120+30 day stale policy for PRs - # * Except PRs marked as "no stale" - days-before-pr-stale: 120 - days-before-pr-close: 30 - exempt-pr-labels: "no stale" - stale-pr-label: "stale" - stale-pr-message: > - There hasn't been any activity on this pull request in the past 4 months, so - it has been marked as stale and it will be closed automatically if no - further activity occurs in the next 30 days. - - If you want this PR to never become stale, please ask a PSC member to apply - the "no stale" label. - # Issues settings. - # 180+30 day stale policy for open issues - # * Except Issues marked as "no stale" - days-before-issue-stale: 180 - days-before-issue-close: 30 - exempt-issue-labels: "no stale,needs more information" - stale-issue-label: "stale" - stale-issue-message: > - There hasn't been any activity on this issue in the past 6 months, so it has - been marked as stale and it will be closed automatically if no further - activity occurs in the next 30 days. - - If you want this issue to never become stale, please ask a PSC member to - apply the "no stale" label. - - # 15+30 day stale policy for issues pending more information - # * Issues that are pending more information - # * Except Issues marked as "no stale" - - name: Needs more information stale issues policy - uses: actions/stale@v4 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - ascending: true - only-labels: "needs more information" - exempt-issue-labels: "no stale" - days-before-stale: 15 - days-before-close: 30 - days-before-pr-stale: -1 - days-before-pr-close: -1 - remove-stale-when-updated: true - stale-issue-label: "stale" - stale-issue-message: > - This issue needs more information and there hasn't been any activity - recently, so it has been marked as stale and it will be closed automatically - if no further activity occurs in the next 30 days. - - If you think this is a mistake, please ask a PSC member to remove the "needs - more information" label. diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index eeb1714..7eaae6b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -61,7 +61,6 @@ jobs: run: oca_init_test_database - name: Run tests run: oca_run_tests - - uses: codecov/codecov-action@v1 - 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 == 'qrtl' }} diff --git a/.gitignore b/.gitignore index 9c283fd..2b045db 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ __pycache__/ *.py[cod] /.venv /.pytest_cache +/.ruff_cache # C extensions *.so @@ -24,6 +25,15 @@ var/ *.egg *.eggs +# Debian packages +*.deb + +# Redhat packages +*.rpm + +# MacOS packages +*.dmg + # Installer logs pip-log.txt pip-delete-this-directory.txt diff --git a/.oca_hooks.cfg b/.oca_hooks.cfg new file mode 100644 index 0000000..1f3e3e4 --- /dev/null +++ b/.oca_hooks.cfg @@ -0,0 +1,2 @@ +[MESSAGES_CONTROL] +disable=xml-deprecated-data-node,xml-deprecated-tree-attribute diff --git a/.pylintrc b/.pylintrc index 64b363e..8772b86 100644 --- a/.pylintrc +++ b/.pylintrc @@ -4,7 +4,7 @@ score=n [ODOOLINT] readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" -manifest_required_authors=Quartile Limited +; manifest_required_authors= manifest_required_keys=license manifest_deprecated_keys=description,active license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 @@ -103,7 +103,7 @@ enable=anomalous-backslash-in-string, eval-referenced, license-allowed, manifest-author-string, - manifest-required-author, + ; manifest-required-author, manifest-required-key, manifest-version-format, api-one-deprecated, diff --git a/.pylintrc-mandatory b/.pylintrc-mandatory index 7482892..c16735c 100644 --- a/.pylintrc-mandatory +++ b/.pylintrc-mandatory @@ -4,7 +4,7 @@ score=n [ODOOLINT] readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" -manifest_required_authors=Quartile Limited + manifest_required_keys=license manifest_deprecated_keys=description,active license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 @@ -57,7 +57,7 @@ enable=anomalous-backslash-in-string, eval-referenced, license-allowed, manifest-author-string, - manifest-required-author, + manifest-required-key, manifest-version-format diff --git a/README.md b/README.md index 5694d09..6db1598 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ This part will be replaced when running the oca-gen-addons-table script from OCA This repository is licensed under [AGPL-3.0](LICENSE). -However, each module can have a totally different license, as long as they adhere to Quartile Limited +However, each module can have a totally different license, as long as they adhere to policy. Consult each module's `__manifest__.py` file, which contains a `license` key that explains its license.