File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Do NOT update manually; changes here will be overwritten by Copier
2- _commit : v1.27
2+ _commit : v1.33
33_src_path : https://github.com/OCA/oca-addons-repo-template.git
44additional_ruff_rules : []
55ci : GitHub
Original file line number Diff line number Diff line change @@ -13,13 +13,13 @@ jobs:
1313 pre-commit :
1414 runs-on : ubuntu-22.04
1515 steps :
16- - uses : actions/checkout@v3
17- - uses : actions/setup-python@v2
16+ - uses : actions/checkout@v4
17+ - uses : actions/setup-python@v5
1818 with :
1919 python-version : " 3.11"
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') }}
Original file line number Diff line number Diff line change 1414 runs-on : ubuntu-latest
1515 name : Detect unreleased dependencies
1616 steps :
17- - uses : actions/checkout@v3
17+ - uses : actions/checkout@v4
1818 - run : |
1919 for reqfile in requirements.txt test-requirements.txt ; do
2020 if [ -f ${reqfile} ] ; then
5252 env :
5353 PIP_INDEX_URL : " https://pypi.org/simple/"
5454 steps :
55- - uses : actions/checkout@v3
55+ - uses : actions/checkout@v4
5656 with :
5757 persist-credentials : false
5858 - name : Install addons and dependencies
Original file line number Diff line number Diff line change 9595 additional_dependencies :
9696 - " eslint@9.12.0"
9797 - " eslint-plugin-jsdoc@50.3.1"
98+ - " globals@16.0.0"
9899 - repo : https://github.com/pre-commit/pre-commit-hooks
99100 rev : v4.6.0
100101 hooks :
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ extend-select = [
1010 " I" , # isort
1111 " UP" , # pyupgrade
1212]
13+ extend-safe-fixes = [" UP008" ]
1314exclude = [" setup/*" ]
1415
1516[format ]
Original file line number Diff line number Diff line change 1+ var globals = require ( 'globals' ) ;
12jsdoc = require ( "eslint-plugin-jsdoc" ) ;
23
34const config = [ {
@@ -16,6 +17,8 @@ const config = [{
1617 openerp : "readonly" ,
1718 owl : "readonly" ,
1819 luxon : "readonly" ,
20+ QUnit : "readonly" ,
21+ ...globals . browser ,
1922 } ,
2023
2124 ecmaVersion : 2024 ,
@@ -191,7 +194,7 @@ const config = [{
191194 } ,
192195
193196} , {
194- files : [ "**/*.esm.js" ] ,
197+ files : [ "**/*.esm.js" , "**/*test.js" ] ,
195198
196199 languageOptions : {
197200 ecmaVersion : 2024 ,
You can’t perform that action at this time.
0 commit comments