mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-16 12:12:57 -06:00
[IMP] update dotfiles
This commit is contained in:
parent
67f23cf9c9
commit
bea13c110d
@ -1,9 +1,10 @@
|
|||||||
# Do NOT update manually; changes here will be overwritten by Copier
|
# Do NOT update manually; changes here will be overwritten by Copier
|
||||||
_commit: v1.24
|
_commit: v1.29
|
||||||
_src_path: gh:oca/oca-addons-repo-template
|
_src_path: gh:oca/oca-addons-repo-template
|
||||||
additional_ruff_rules: []
|
additional_ruff_rules: []
|
||||||
ci: GitHub
|
ci: GitHub
|
||||||
convert_readme_fragments_to_markdown: true
|
convert_readme_fragments_to_markdown: true
|
||||||
|
enable_checklog_odoo: false
|
||||||
generate_requirements_txt: true
|
generate_requirements_txt: true
|
||||||
github_check_license: true
|
github_check_license: true
|
||||||
github_ci_extra_env: {}
|
github_ci_extra_env: {}
|
||||||
|
6
.github/workflows/pre-commit.yml
vendored
6
.github/workflows/pre-commit.yml
vendored
@ -13,13 +13,13 @@ jobs:
|
|||||||
pre-commit:
|
pre-commit:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.11"
|
python-version: "3.11"
|
||||||
- name: Get python version
|
- name: Get python version
|
||||||
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
|
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
|
||||||
- uses: actions/cache@v1
|
- uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/pre-commit
|
path: ~/.cache/pre-commit
|
||||||
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
|
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
|
||||||
|
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@ -14,7 +14,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Detect unreleased dependencies
|
name: Detect unreleased dependencies
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- run: |
|
- run: |
|
||||||
for reqfile in requirements.txt test-requirements.txt ; do
|
for reqfile in requirements.txt test-requirements.txt ; do
|
||||||
if [ -f ${reqfile} ] ; then
|
if [ -f ${reqfile} ] ; then
|
||||||
@ -50,7 +50,7 @@ jobs:
|
|||||||
ports:
|
ports:
|
||||||
- 5432:5432
|
- 5432:5432
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Install addons and dependencies
|
- name: Install addons and dependencies
|
||||||
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -25,6 +25,9 @@ var/
|
|||||||
*.egg
|
*.egg
|
||||||
*.eggs
|
*.eggs
|
||||||
|
|
||||||
|
# Windows installers
|
||||||
|
*.msi
|
||||||
|
|
||||||
# Debian packages
|
# Debian packages
|
||||||
*.deb
|
*.deb
|
||||||
|
|
||||||
@ -33,6 +36,7 @@ var/
|
|||||||
|
|
||||||
# MacOS packages
|
# MacOS packages
|
||||||
*.dmg
|
*.dmg
|
||||||
|
*.pkg
|
||||||
|
|
||||||
# Installer logs
|
# Installer logs
|
||||||
pip-log.txt
|
pip-log.txt
|
||||||
|
@ -5,7 +5,7 @@ exclude: |
|
|||||||
# Files and folders generated by bots, to avoid loops
|
# Files and folders generated by bots, to avoid loops
|
||||||
^setup/|/static/description/index\.html$|
|
^setup/|/static/description/index\.html$|
|
||||||
# We don't want to mess with tool-generated files
|
# We don't want to mess with tool-generated files
|
||||||
.svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|
|
.svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|^eslint.config.cjs|^prettier.config.cjs|
|
||||||
# Maybe reactivate this when all README files include prettier ignore tags?
|
# Maybe reactivate this when all README files include prettier ignore tags?
|
||||||
^README\.md$|
|
^README\.md$|
|
||||||
# Library files can have extraneous formatting (even minimized)
|
# Library files can have extraneous formatting (even minimized)
|
||||||
@ -39,7 +39,7 @@ repos:
|
|||||||
language: fail
|
language: fail
|
||||||
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
|
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
|
||||||
- repo: https://github.com/sbidoul/whool
|
- repo: https://github.com/sbidoul/whool
|
||||||
rev: v0.5
|
rev: v1.2
|
||||||
hooks:
|
hooks:
|
||||||
- id: whool-init
|
- id: whool-init
|
||||||
- repo: https://github.com/oca/maintainer-tools
|
- repo: https://github.com/oca/maintainer-tools
|
||||||
@ -64,25 +64,37 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: oca-checks-odoo-module
|
- id: oca-checks-odoo-module
|
||||||
- id: oca-checks-po
|
- id: oca-checks-po
|
||||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
args:
|
||||||
rev: v2.7.1
|
- --disable=po-pretty-format
|
||||||
|
- repo: local
|
||||||
hooks:
|
hooks:
|
||||||
- id: prettier
|
- id: prettier
|
||||||
name: prettier (with plugin-xml)
|
name: prettier (with plugin-xml)
|
||||||
|
entry: prettier
|
||||||
|
args:
|
||||||
|
- --write
|
||||||
|
- --list-different
|
||||||
|
- --ignore-unknown
|
||||||
|
types: [text]
|
||||||
|
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
|
||||||
|
language: node
|
||||||
additional_dependencies:
|
additional_dependencies:
|
||||||
- "prettier@2.7.1"
|
- "prettier@2.7.1"
|
||||||
- "@prettier/plugin-xml@2.2.0"
|
- "@prettier/plugin-xml@2.2.0"
|
||||||
args:
|
- repo: local
|
||||||
- --plugin=@prettier/plugin-xml
|
|
||||||
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
|
|
||||||
- repo: https://github.com/pre-commit/mirrors-eslint
|
|
||||||
rev: v8.24.0
|
|
||||||
hooks:
|
hooks:
|
||||||
- id: eslint
|
- id: eslint
|
||||||
verbose: true
|
name: eslint
|
||||||
|
entry: eslint
|
||||||
args:
|
args:
|
||||||
- --color
|
- --color
|
||||||
- --fix
|
- --fix
|
||||||
|
verbose: true
|
||||||
|
types: [javascript]
|
||||||
|
language: node
|
||||||
|
additional_dependencies:
|
||||||
|
- "eslint@8.24.0"
|
||||||
|
- "eslint-plugin-jsdoc@"
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v4.3.0
|
rev: v4.3.0
|
||||||
hooks:
|
hooks:
|
||||||
|
@ -10,6 +10,7 @@ extend-select = [
|
|||||||
"I", # isort
|
"I", # isort
|
||||||
"UP", # pyupgrade
|
"UP", # pyupgrade
|
||||||
]
|
]
|
||||||
|
extend-safe-fixes = ["UP008"]
|
||||||
exclude = ["setup/*"]
|
exclude = ["setup/*"]
|
||||||
|
|
||||||
[format]
|
[format]
|
||||||
|
Loading…
Reference in New Issue
Block a user