[ADD] maintainer-tools to autopep8, flake8 and pylint-odoo

This commit is contained in:
Mathieu Benoit 2021-03-20 21:07:24 -04:00
parent 887f05da56
commit fcd755b5b6
6 changed files with 31 additions and 0 deletions

13
.flake8 Normal file
View file

@ -0,0 +1,13 @@
[flake8]
max-line-length = 80
max-complexity = 16
# B = bugbear
# B9 = bugbear opinionated (incl line length)
select = C,E,F,W,B,B9
# E203: whitespace before ':' (black behaviour)
# E501: flake8 line length (covered by bugbear B950)
# W503: line break before binary operator (black behaviour)
ignore = E203,E501,W503
exclude =
./.git
.eggs/

View file

@ -75,6 +75,7 @@
<project name="interface-github.git" path="addons/OCA_interface-github" remote="OCA" groups="addons"/>
<project name="knowledge.git" path="addons/OCA_knowledge" remote="OCA" groups="addons"/>
<project name="l10n-canada.git" path="addons/OCA_l10n-canada" remote="OCA" groups="addons"/>
<project name="maintainer-tools.git" path="script/OCA_maintainer-tools" remote="OCA" revision="master" groups="odoo,code_generator"/>
<project name="maintenance.git" path="addons/OCA_maintenance" remote="OCA" groups="addons"/>
<project name="management-system.git" path="addons/OCA_management-system" remote="OCA" groups="addons"/>
<project name="manufacture.git" path="addons/OCA_manufacture" remote="OCA" groups="addons"/>

View file

@ -30,6 +30,14 @@ voicent-python
python-swiftclient
python-keystoneclient
# For logical test
docutils==0.16
flake8
pylint-odoo
git+https://github.com/oca/pylint-odoo.git#egg=pylint-odoo
# oca-maintainers-tools
# git+https://github.com/OCA/maintainer-tools.git#egg=oca-maintainers-tools
# For updating poetry
toml
iscompatible

View file

@ -155,6 +155,7 @@ if [[ ${EL_MINIMAL_ADDONS} = "False" ]]; then
printf "${EL_HOME}/doc/itpp-labs_odoo-port-docs," >> ${EL_CONFIG_FILE}
printf "${EL_HOME}/doc/itpp-labs_odoo-test-docs," >> ${EL_CONFIG_FILE}
printf "${EL_HOME}/doc/odoo_documentation-user," >> ${EL_CONFIG_FILE}
printf "${EL_HOME}/script/OCA_maintainer-tools," >> ${EL_CONFIG_FILE}
printf "${EL_HOME}/script/OCA_odoo-module-migrator," >> ${EL_CONFIG_FILE}
fi
printf "\n" >> ${EL_CONFIG_FILE}

View file

@ -6,3 +6,10 @@
# Update git-repo
./script/update_manifest_local_dev.sh
# Install maintainer-tools
cd script/OCA_maintainer-tools
virtualenv env
. env/bin/activate
python setup.py install
#${VENV_PATH}/bin/pip install ./script/OCA_maintainer-tools/

View file

@ -125,6 +125,7 @@ https://github.com/itpp-labs/odoo-port-docs.git,doc,master,
https://github.com/itpp-labs/odoo-test-docs.git,doc,master,
https://github.com/odoo/documentation-user.git,doc,,
https://github.com/OCA/odoo-module-migrator.git,script,master,
https://github.com/OCA/maintainer-tools.git,script,master,
https://github.com/TechnoLibre/odoo-code-generator.git,addons,,
https://github.com/TechnoLibre/odoo-code-generator-template.git,addons,,
https://github.com/ERPLibre/ERPLibre_image_db.git,,,

1 url path revision clone-depth
125 https://github.com/itpp-labs/odoo-test-docs.git doc master
126 https://github.com/odoo/documentation-user.git doc
127 https://github.com/OCA/odoo-module-migrator.git script master
128 https://github.com/OCA/maintainer-tools.git script master
129 https://github.com/TechnoLibre/odoo-code-generator.git addons
130 https://github.com/TechnoLibre/odoo-code-generator-template.git addons
131 https://github.com/ERPLibre/ERPLibre_image_db.git