Skip to content

Commit b3a870c

Browse files
committed
[IMP] update dotfiles
1 parent a7f47d6 commit b3a870c

File tree

6 files changed

+40
-15
lines changed

6 files changed

+40
-15
lines changed

.copier-answers.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Do NOT update manually; changes here will be overwritten by Copier
2-
_commit: v1.14.2
2+
_commit: v1.29
33
_src_path: git+https://github.com/oca/oca-addons-repo-template
44
ci: GitHub
5-
dependency_installation_mode: PIP
5+
convert_readme_fragments_to_markdown: false
6+
enable_checklog_odoo: false
67
generate_requirements_txt: true
78
github_check_license: false
89
github_ci_extra_env: {}
@@ -11,6 +12,7 @@ github_enable_makepot: true
1112
github_enable_stale_action: true
1213
github_enforce_dev_status_compatibility: true
1314
include_wkhtmltopdf: false
15+
odoo_test_flavor: OCB
1416
odoo_version: 12.0
1517
org_name: Odoo Community Association (OCA)
1618
org_slug: OCA
@@ -19,6 +21,4 @@ repo_description: Authentication related modules.
1921
repo_name: Server Auth
2022
repo_slug: server-auth
2123
repo_website: https://github.com/OCA/server-auth
22-
travis_apt_packages: []
23-
travis_apt_sources: []
2424

.github/workflows/pre-commit.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,29 @@ jobs:
1313
pre-commit:
1414
runs-on: ubuntu-20.04
1515
steps:
16-
- uses: actions/checkout@v2
17-
- uses: actions/setup-python@v2
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-python@v5
1818
with:
1919
python-version: "3.6"
2020
- name: Get python version
2121
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
22-
- uses: actions/cache@v1
22+
- uses: actions/cache@v4
2323
with:
2424
path: ~/.cache/pre-commit
2525
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
2626
- name: Install pre-commit
2727
run: pip install pre-commit
2828
- name: Run pre-commit
2929
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
3039
- name: Check that all files generated by pre-commit are in git
3140
run: |
3241
newfiles="$(git ls-files --others --exclude-from=.gitignore)"

.github/workflows/stale.yml

+2-2
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

.github/workflows/test.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
name: Detect unreleased dependencies
1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v4
1818
- run: |
1919
for reqfile in requirements.txt test-requirements.txt ; do
2020
if [ -f ${reqfile} ] ; then
@@ -35,11 +35,9 @@ jobs:
3535
fail-fast: false
3636
matrix:
3737
include:
38-
- container: ghcr.io/oca/oca-ci/py3.6-odoo12.0:latest
39-
makepot: "true"
40-
name: test with Odoo
4138
- container: ghcr.io/oca/oca-ci/py3.6-ocb12.0:latest
4239
name: test with OCB
40+
makepot: "true"
4341
services:
4442
postgres:
4543
image: postgres:9.6
@@ -50,7 +48,7 @@ jobs:
5048
ports:
5149
- 5432:5432
5250
steps:
53-
- uses: actions/checkout@v2
51+
- uses: actions/checkout@v4
5452
with:
5553
persist-credentials: false
5654
- name: Install addons and dependencies
@@ -64,7 +62,9 @@ jobs:
6462
run: oca_init_test_database
6563
- name: Run tests
6664
run: oca_run_tests
67-
- uses: codecov/codecov-action@v1
65+
- uses: codecov/codecov-action@v4
66+
with:
67+
token: ${{ secrets.CODECOV_TOKEN }}
6868
- name: Update .pot files
6969
run: oca_export_and_push_pot https://x-access-token:${{ secrets.GIT_PUSH_TOKEN }}@github.com/${{ github.repository }}
7070
if: ${{ matrix.makepot == 'true' && github.event_name == 'push' && github.repository_owner == 'OCA' }}

.gitignore

+14
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
@@ -24,6 +25,19 @@ var/
2425
*.egg
2526
*.eggs
2627

28+
# Windows installers
29+
*.msi
30+
31+
# Debian packages
32+
*.deb
33+
34+
# Redhat packages
35+
*.rpm
36+
37+
# MacOS packages
38+
*.dmg
39+
*.pkg
40+
2741
# Installer logs
2842
pip-log.txt
2943
pip-delete-this-directory.txt

.oca_hooks.cfg

+2
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

0 commit comments

Comments
 (0)