Skip to content

Commit 1a3bf9d

Browse files
committed
[IMP] update dotfiles
1 parent dfafab5 commit 1a3bf9d

File tree

4 files changed

+30
-8
lines changed

4 files changed

+30
-8
lines changed

.copier-answers.yml

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
# Do NOT update manually; changes here will be overwritten by Copier
2-
_commit: v1.14.2
2+
_commit: v1.17.2
33
_src_path: gh:oca/oca-addons-repo-template
44
ci: Travis
55
dependency_installation_mode: PIP
66
generate_requirements_txt: true
7-
github_check_license: true
8-
github_ci_extra_env: {}
9-
github_enable_codecov: true
10-
github_enable_makepot: true
117
github_enable_stale_action: true
12-
github_enforce_dev_status_compatibility: true
138
include_wkhtmltopdf: false
9+
odoo_test_flavor: Both
1410
odoo_version: 14.0
1511
org_name: Odoo Community Association (OCA)
1612
org_slug: OCA

.eslintrc.yml

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

+12-1
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)"

.pre-commit-config.yaml

+15-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ 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)$|
1517
# You don't usually want a bot to modify your legal texts
1618
(LICENSE.*|COPYING.*)
1719
default_language_version:
@@ -33,12 +35,24 @@ repos:
3335
language: fail
3436
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
3537
- repo: https://github.com/oca/maintainer-tools
36-
rev: ab1d7f6
38+
rev: 969238e47c07d0c40573acff81d170f63245d738
3739
hooks:
3840
# update the NOT INSTALLABLE ADDONS section above
3941
- id: oca-update-pre-commit-excluded-addons
4042
- id: oca-fix-manifest-website
4143
args: ["https://github.com/OCA/l10n-slovenia"]
44+
- id: oca-gen-addon-readme
45+
args:
46+
- --addons-dir=.
47+
- --branch=14.0
48+
- --org-name=OCA
49+
- --repo-name=l10n-slovenia
50+
- --if-source-changed
51+
- repo: https://github.com/OCA/odoo-pre-commit-hooks
52+
rev: v0.0.25
53+
hooks:
54+
- id: oca-checks-odoo-module
55+
- id: oca-checks-po
4256
- repo: https://github.com/myint/autoflake
4357
rev: v1.4
4458
hooks:

0 commit comments

Comments
 (0)