Skip to content

Commit 48daec8

Browse files
committed
[UPD] dotfiles
1 parent 7138a05 commit 48daec8

12 files changed

Lines changed: 139 additions & 98 deletions

File tree

.copier-answers.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
11
# Do NOT update manually; changes here will be overwritten by Copier
2-
_commit: v1.29
2+
_commit: v1.38
33
_src_path: gh:oca/oca-addons-repo-template
4-
ci: Travis
4+
ci: GitHub
55
convert_readme_fragments_to_markdown: false
6-
dependency_installation_mode: PIP
76
enable_checklog_odoo: false
87
generate_requirements_txt: true
8+
github_check_license: true
9+
github_ci_extra_env: {}
10+
github_enable_codecov: true
11+
github_enable_makepot: true
912
github_enable_stale_action: true
13+
github_enforce_dev_status_compatibility: true
1014
include_wkhtmltopdf: false
1115
odoo_test_flavor: Both
1216
odoo_version: 14.0
1317
org_name: Odoo Community Association (OCA)
1418
org_slug: OCA
1519
rebel_module_groups: []
16-
repo_description: 'TODO: add repo description.'
20+
repo_description: Apps store, used on odoo-community.org
1721
repo_name: apps-store
1822
repo_slug: apps-store
1923
repo_website: https://github.com/OCA/apps-store
20-
travis_apt_packages: []
21-
travis_apt_sources: []
22-
use_pyproject_toml: false
24+
use_pyproject_toml: true
2325
use_ruff: false
2426

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test-requirements.txt merge=union

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
- uses: actions/setup-python@v5
1818
with:
1919
python-version: "3.11"
20+
cache: 'pip'
2021
- name: Get python version
2122
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
2223
- uses: actions/cache@v4

.github/workflows/test.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: tests
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "14.0*"
7+
push:
8+
branches:
9+
- "14.0"
10+
- "14.0-ocabot-*"
11+
12+
jobs:
13+
unreleased-deps:
14+
runs-on: ubuntu-latest
15+
name: Detect unreleased dependencies
16+
steps:
17+
- uses: actions/checkout@v4
18+
- run: |
19+
for reqfile in requirements.txt test-requirements.txt ; do
20+
if [ -f ${reqfile} ] ; then
21+
result=0
22+
# reject non-comment lines that contain a / (i.e. URLs, relative paths)
23+
grep "^[^#].*/" ${reqfile} || result=$?
24+
if [ $result -eq 0 ] ; then
25+
echo "Unreleased dependencies found in ${reqfile}."
26+
exit 1
27+
fi
28+
fi
29+
done
30+
test:
31+
runs-on: ubuntu-22.04
32+
container: ${{ matrix.container }}
33+
name: ${{ matrix.name }}
34+
strategy:
35+
fail-fast: false
36+
matrix:
37+
include:
38+
- container: ghcr.io/oca/oca-ci/py3.6-odoo14.0:latest
39+
name: test with Odoo
40+
- container: ghcr.io/oca/oca-ci/py3.6-ocb14.0:latest
41+
name: test with OCB
42+
makepot: "true"
43+
services:
44+
postgres:
45+
image: postgres:9.6
46+
env:
47+
POSTGRES_USER: odoo
48+
POSTGRES_PASSWORD: odoo
49+
POSTGRES_DB: odoo
50+
ports:
51+
- 5432:5432
52+
steps:
53+
- uses: actions/checkout@v4
54+
with:
55+
persist-credentials: false
56+
- name: Install addons and dependencies
57+
run: oca_install_addons
58+
- name: Check licenses
59+
run: manifestoo -d . check-licenses
60+
- name: Check development status
61+
run: manifestoo -d . check-dev-status --default-dev-status=Beta
62+
- name: Initialize test db
63+
run: oca_init_test_database
64+
- name: Run tests
65+
run: oca_run_tests
66+
- name: Upload screenshots from JS tests
67+
uses: actions/upload-artifact@v4
68+
if: ${{ failure() }}
69+
with:
70+
name: Screenshots of failed JS tests - ${{ matrix.name }}${{ join(matrix.include) }}
71+
path: /tmp/odoo_tests/${{ env.PGDATABASE }}
72+
if-no-files-found: ignore
73+
- uses: codecov/codecov-action@v4
74+
with:
75+
token: ${{ secrets.CODECOV_TOKEN }}
76+
- name: Update .pot files
77+
run: oca_export_and_push_pot https://x-access-token:${{ secrets.GIT_PUSH_TOKEN }}@github.com/${{ github.repository }}
78+
if: ${{ matrix.makepot == 'true' && github.event_name == 'push' && github.repository_owner == 'OCA' }}

.pre-commit-config.yaml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,12 @@ repos:
3838
entry: found a en.po file
3939
language: fail
4040
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
41+
- repo: https://github.com/sbidoul/whool
42+
rev: v1.3
43+
hooks:
44+
- id: whool-init
4145
- repo: https://github.com/oca/maintainer-tools
42-
rev: d5fab7ee87fceee858a3d01048c78a548974d935
46+
rev: f9b919b9868143135a9c9cb03021089cabba8223
4347
hooks:
4448
# update the NOT INSTALLABLE ADDONS section above
4549
- id: oca-update-pre-commit-excluded-addons
@@ -53,6 +57,7 @@ repos:
5357
- --repo-name=apps-store
5458
- --if-source-changed
5559
- --keep-source-digest
60+
- id: oca-gen-external-dependencies
5661
- repo: https://github.com/OCA/odoo-pre-commit-hooks
5762
rev: v0.0.25
5863
hooks:
@@ -104,6 +109,7 @@ repos:
104109
additional_dependencies:
105110
- "eslint@7.8.1"
106111
- "eslint-plugin-jsdoc@"
112+
- "globals@"
107113
- repo: https://github.com/pre-commit/pre-commit-hooks
108114
rev: v3.2.0
109115
hooks:
@@ -139,16 +145,6 @@ repos:
139145
args:
140146
- --settings=.
141147
exclude: /__init__\.py$
142-
- repo: https://github.com/acsone/setuptools-odoo
143-
rev: 3.1.8
144-
hooks:
145-
- id: setuptools-odoo-make-default
146-
- id: setuptools-odoo-get-requirements
147-
args:
148-
- --output
149-
- requirements.txt
150-
- --header
151-
- "# generated from manifests external_dependencies"
152148
- repo: https://github.com/PyCQA/flake8
153149
rev: 5.0.0
154150
hooks:

.pylintrc

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,25 @@ disable=all
2525
enable=anomalous-backslash-in-string,
2626
api-one-deprecated,
2727
api-one-multi-together,
28-
assignment-from-none,
29-
attribute-deprecated,
3028
class-camelcase,
31-
dangerous-default-value,
3229
dangerous-view-replace-wo-priority,
33-
development-status-allowed,
3430
duplicate-id-csv,
35-
duplicate-key,
3631
duplicate-xml-fields,
3732
duplicate-xml-record-id,
3833
eval-referenced,
39-
eval-used,
4034
incoherent-interpreter-exec-perm,
35+
openerp-exception-warning,
36+
redundant-modulename-xml,
37+
relative-import,
38+
rst-syntax-error,
39+
wrong-tabs-instead-of-spaces,
40+
xml-syntax-error,
41+
assignment-from-none,
42+
attribute-deprecated,
43+
dangerous-default-value,
44+
development-status-allowed,
45+
duplicate-key,
46+
eval-used,
4147
license-allowed,
4248
manifest-author-string,
4349
manifest-deprecated-key,
@@ -48,40 +54,28 @@ enable=anomalous-backslash-in-string,
4854
method-inverse,
4955
method-required-super,
5056
method-search,
51-
openerp-exception-warning,
5257
pointless-statement,
5358
pointless-string-statement,
5459
print-used,
5560
redundant-keyword-arg,
56-
redundant-modulename-xml,
5761
reimported,
58-
relative-import,
5962
return-in-init,
60-
rst-syntax-error,
6163
sql-injection,
6264
too-few-format-args,
6365
translation-field,
6466
translation-required,
6567
unreachable,
6668
use-vim-comment,
67-
wrong-tabs-instead-of-spaces,
68-
xml-syntax-error,
69+
missing-manifest-dependency,
70+
too-complex,
6971
# messages that do not cause the lint step to fail
7072
consider-merging-classes-inherited,
71-
create-user-wo-reset-password,
72-
dangerous-filter-wo-user,
7373
deprecated-module,
74-
file-not-used,
7574
invalid-commit,
76-
missing-manifest-dependency,
77-
missing-newline-extrafiles,
7875
missing-readme,
79-
no-utf8-coding-comment,
8076
odoo-addons-relative-import,
81-
old-api7-method-defined,
8277
redefined-builtin,
83-
too-complex,
84-
unnecessary-utf8-coding-comment
78+
manifest-external-assets
8579

8680

8781
[REPORTS]

.pylintrc-mandatory

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,25 @@ disable=all
1717
enable=anomalous-backslash-in-string,
1818
api-one-deprecated,
1919
api-one-multi-together,
20-
assignment-from-none,
21-
attribute-deprecated,
2220
class-camelcase,
23-
dangerous-default-value,
2421
dangerous-view-replace-wo-priority,
25-
development-status-allowed,
2622
duplicate-id-csv,
27-
duplicate-key,
2823
duplicate-xml-fields,
2924
duplicate-xml-record-id,
3025
eval-referenced,
31-
eval-used,
3226
incoherent-interpreter-exec-perm,
27+
openerp-exception-warning,
28+
redundant-modulename-xml,
29+
relative-import,
30+
rst-syntax-error,
31+
wrong-tabs-instead-of-spaces,
32+
xml-syntax-error,
33+
assignment-from-none,
34+
attribute-deprecated,
35+
dangerous-default-value,
36+
development-status-allowed,
37+
duplicate-key,
38+
eval-used,
3339
license-allowed,
3440
manifest-author-string,
3541
manifest-deprecated-key,
@@ -40,24 +46,18 @@ enable=anomalous-backslash-in-string,
4046
method-inverse,
4147
method-required-super,
4248
method-search,
43-
openerp-exception-warning,
4449
pointless-statement,
4550
pointless-string-statement,
4651
print-used,
4752
redundant-keyword-arg,
48-
redundant-modulename-xml,
4953
reimported,
50-
relative-import,
5154
return-in-init,
52-
rst-syntax-error,
5355
sql-injection,
5456
too-few-format-args,
5557
translation-field,
5658
translation-required,
5759
unreachable,
58-
use-vim-comment,
59-
wrong-tabs-instead-of-spaces,
60-
xml-syntax-error
60+
use-vim-comment
6161

6262
[REPORTS]
6363
msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}

.travis.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11

2+
[![Support the OCA](https://odoo-community.org/readme-banner-image)](https://odoo-community.org/get-involved?utm_source=repo-readme)
3+
4+
# apps-store
25
[![Runboat](https://img.shields.io/badge/runboat-Try%20me-875A7B.png)](https://runboat.odoo-community.org/builds?repo=OCA/apps-store&target_branch=14.0)
3-
[![Build Status](https://travis-ci.com/OCA/apps-store.svg?branch=14.0)](https://travis-ci.com/OCA/apps-store)
6+
[![Pre-commit Status](https://github.com/OCA/apps-store/actions/workflows/pre-commit.yml/badge.svg?branch=14.0)](https://github.com/OCA/apps-store/actions/workflows/pre-commit.yml?query=branch%3A14.0)
7+
[![Build Status](https://github.com/OCA/apps-store/actions/workflows/test.yml/badge.svg?branch=14.0)](https://github.com/OCA/apps-store/actions/workflows/test.yml?query=branch%3A14.0)
48
[![codecov](https://codecov.io/gh/OCA/apps-store/branch/14.0/graph/badge.svg)](https://codecov.io/gh/OCA/apps-store)
59
[![Translation Status](https://translation.odoo-community.org/widgets/apps-store-14-0/-/svg-badge.svg)](https://translation.odoo-community.org/engage/apps-store-14-0/?utm_source=widget)
610

711
<!-- /!\ do not modify above this line -->
812

9-
# apps-store
10-
11-
TODO: add repo description.
13+
Apps store, used on odoo-community.org
1214

1315
<!-- /!\ do not modify below this line -->
1416

apps_download/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"

0 commit comments

Comments
 (0)