Skip to content

Commit 8b1c8f1

Browse files
committed
Merge branch '14.0' of git+ssh://github.com/shopinvader/pattern-import-export into model_domain_on_import_wizard
2 parents 6061723 + 7fee27f commit 8b1c8f1

File tree

6 files changed

+31
-17
lines changed

6 files changed

+31
-17
lines changed

.copier-answers.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# Do NOT update manually; changes here will be overwritten by Copier
2-
_commit: v1.0.13
2+
_commit: v1.1.2
33
_src_path: git+https://github.com/shopinvader/shopinvader-addons-repo-template
44
black_version: 20.8b1
55
generate_requirements_txt: true
66
odoo_version: '14.0'
77
prettify_xml: true
88
python_line_length: 88
9+
rebel_module_groups: []
910
repo_slug: pattern-import-export

.flake8

+2
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ select = C,E,F,W,B,B9
88
# E501: flake8 line length (covered by bugbear B950)
99
# W503: line break before binary operator (black behaviour)
1010
ignore = E203,E501,W503
11+
per-file-ignores=
12+
__init__.py:F401

.github/workflows/pre-commit.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@ jobs:
1313
with:
1414
# The pylint-odoo version we use here does not support python 3.10
1515
# https://github.com/OCA/oca-addons-repo-template/issues/80
16-
python-version: "3.9"
16+
# We also need to pin to an older version of python for older odoo versions
17+
# where we are not using black > 21. Older black versions won't work with
18+
# Python 3.9.8+, and we can't bump black without reformatting.
19+
python-version: "3.9.7"
1720
- uses: pre-commit/[email protected]

.github/workflows/pre-commit.yml.rej

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
diff a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml (rejected hunks)
2+
@@ -12,2 +12,6 @@ jobs:
3+
- uses: actions/setup-python@v2
4+
+ with:
5+
+ # The pylint-odoo version we use here does not support python 3.10
6+
+ # https://github.com/OCA/oca-addons-repo-template/issues/80
7+
+ python-version: "3.9"
8+
- uses: pre-commit/[email protected]

.github/workflows/test.yml

+14-8
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,18 @@ jobs:
3434
- uses: actions/checkout@v2
3535
with:
3636
persist-credentials: false
37-
- run: oca_install_addons
38-
- run: oca_init_test_database
39-
- run: oca_run_tests
37+
- name: Install addons and dependencies
38+
run: oca_install_addons
39+
- name: Check licenses
40+
run: manifestoo -d . check-licenses
41+
- name: Check development status
42+
run: manifestoo -d . check-dev-status --default-dev-status=Beta
43+
continue-on-error: true
44+
- name: Initialize test db
45+
run: oca_init_test_database
46+
- name: Run tests
47+
run: oca_run_tests
4048
- uses: codecov/codecov-action@v1
41-
- run: |
42-
oca_export_and_commit_pot
43-
git fetch --unshallow --all
44-
git push https://x-access-token:${{ secrets.GIT_PUSH_TOKEN }}@github.com/${{ github.repository }}
45-
if: ${{ matrix.makepot == 'true' && github.event_name == 'push' && github.repository_owner == 'shopinvader' && startsWith(github.ref, 'refs/heads/14.0') }}
49+
- name: Update .pot files
50+
run: oca_export_and_push_pot https://x-access-token:${{ secrets.GIT_PUSH_TOKEN }}@github.com/${{ github.repository }}
51+
if: ${{ matrix.makepot == 'true' && github.event_name == 'push' && github.repository_owner == 'shopinvader' }}

.pre-commit-config.yaml

+1-7
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,7 @@ repos:
111111
rev: 3.8.3
112112
hooks:
113113
- id: flake8
114-
name: flake8 except __init__.py
115-
exclude: /__init__\.py$
116-
additional_dependencies: ["flake8-bugbear==20.1.4"]
117-
- id: flake8
118-
name: flake8 only __init__.py
119-
args: ["--extend-ignore=F401"] # ignore unused imports in __init__.py
120-
files: /__init__\.py$
114+
name: flake8
121115
additional_dependencies: ["flake8-bugbear==20.1.4"]
122116
- repo: https://github.com/PyCQA/pylint
123117
rev: pylint-2.5.3

0 commit comments

Comments
 (0)