Skip to content

Commit 25ab4fb

Browse files
committed
[IMP] update dotfiles
1 parent a54fd6a commit 25ab4fb

File tree

7 files changed

+43
-10
lines changed

7 files changed

+43
-10
lines changed

.copier-answers.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
# Do NOT update manually; changes here will be overwritten by Copier
2-
_commit: v1.14.2
2+
_commit: v1.21.1
33
_src_path: gh:oca/oca-addons-repo-template
44
ci: Travis
5+
convert_readme_fragments_to_markdown: false
56
dependency_installation_mode: PIP
67
generate_requirements_txt: true
7-
github_check_license: true
8-
github_ci_extra_env: {}
9-
github_enable_codecov: true
10-
github_enable_makepot: true
118
github_enable_stale_action: true
12-
github_enforce_dev_status_compatibility: true
139
include_wkhtmltopdf: false
10+
odoo_test_flavor: Both
1411
odoo_version: 14.0
1512
org_name: Odoo Community Association (OCA)
1613
org_slug: OCA
@@ -21,4 +18,6 @@ repo_slug: connector-ecommerce
2118
repo_website: https://github.com/OCA/connector-ecommerce
2219
travis_apt_packages: []
2320
travis_apt_sources: []
21+
use_pyproject_toml: false
22+
use_ruff: false
2423

.eslintrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ globals:
2222
odoo: readonly
2323
openerp: readonly
2424
owl: readonly
25+
luxon: readonly
2526

2627
# Styling is handled by Prettier, so we only need to enable AST rules;
2728
# see https://github.com/OCA/maintainer-quality-tools/pull/618#issuecomment-558576890

.github/workflows/pre-commit.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ jobs:
1313
pre-commit:
1414
runs-on: ubuntu-22.04
1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v3
1717
- uses: actions/setup-python@v2
18+
with:
19+
python-version: "3.11"
1820
- name: Get python version
1921
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
2022
- uses: actions/cache@v1
@@ -25,6 +27,15 @@ jobs:
2527
run: pip install pre-commit
2628
- name: Run pre-commit
2729
run: pre-commit run --all-files --show-diff-on-failure --color=always
30+
env:
31+
# Consider valid a PR that changes README fragments but doesn't
32+
# change the README.rst file itself. It's not really a problem
33+
# because the bot will update it anyway after merge. This way, we
34+
# lower the barrier for functional contributors that want to fix the
35+
# readme fragments, while still letting developers get README
36+
# auto-generated (which also helps functionals when using runboat).
37+
# DOCS https://pre-commit.com/#temporarily-disabling-hooks
38+
SKIP: oca-gen-addon-readme
2839
- name: Check that all files generated by pre-commit are in git
2940
run: |
3041
newfiles="$(git ls-files --others --exclude-from=.gitignore)"

.github/workflows/stale.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Stale PRs and issues policy
12-
uses: actions/stale@v4
12+
uses: actions/stale@v9
1313
with:
1414
repo-token: ${{ secrets.GITHUB_TOKEN }}
1515
# General settings.
@@ -48,7 +48,7 @@ jobs:
4848
# * Issues that are pending more information
4949
# * Except Issues marked as "no stale"
5050
- name: Needs more information stale issues policy
51-
uses: actions/stale@v4
51+
uses: actions/stale@v9
5252
with:
5353
repo-token: ${{ secrets.GITHUB_TOKEN }}
5454
ascending: true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ __pycache__/
33
*.py[cod]
44
/.venv
55
/.pytest_cache
6+
/.ruff_cache
67

78
# C extensions
89
*.so

.oca_hooks.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[MESSAGES_CONTROL]
2+
disable=xml-deprecated-data-node,xml-deprecated-tree-attribute

.pre-commit-config.yaml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ exclude: |
1212
/static/(src/)?lib/|
1313
# Repos using Sphinx to generate docs don't need prettying
1414
^docs/_templates/.*\.html$|
15+
# Don't bother non-technical authors with formatting issues in docs
16+
readme/.*\.(rst|md)$|
17+
# Ignore build and dist directories in addons
18+
/build/|/dist/|
19+
# Ignore test files in addons
20+
/tests/samples/.*|
1521
# You don't usually want a bot to modify your legal texts
1622
(LICENSE.*|COPYING.*)
1723
default_language_version:
@@ -33,12 +39,25 @@ repos:
3339
language: fail
3440
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
3541
- repo: https://github.com/oca/maintainer-tools
36-
rev: ab1d7f6
42+
rev: 9a170331575a265c092ee6b24b845ec508e8ef75
3743
hooks:
3844
# update the NOT INSTALLABLE ADDONS section above
3945
- id: oca-update-pre-commit-excluded-addons
4046
- id: oca-fix-manifest-website
4147
args: ["https://github.com/OCA/connector-ecommerce"]
48+
- id: oca-gen-addon-readme
49+
args:
50+
- --addons-dir=.
51+
- --branch=14.0
52+
- --org-name=OCA
53+
- --repo-name=connector-ecommerce
54+
- --if-source-changed
55+
- --keep-source-digest
56+
- repo: https://github.com/OCA/odoo-pre-commit-hooks
57+
rev: v0.0.25
58+
hooks:
59+
- id: oca-checks-odoo-module
60+
- id: oca-checks-po
4261
- repo: https://github.com/myint/autoflake
4362
rev: v1.4
4463
hooks:

0 commit comments

Comments
 (0)