- Install pylint and pylint-odoo with pip
python3 -m pip install pylint
# and install plugin pylint-odoo from OCA repository
python3 -m pip install --upgrade git+https://github.com/oca/pylint-odoo.git
- pylint-odoo already have default configuration that you can run easily with
python3 -m pylint --load-plugins=pylint_odoo -d all -e odoolint <your_custom_addons_directory>
# For example
python3 -m pylint --load-plugins=pylint_odoo -d all -e odoolint custom-addons/pcs_payment_tripay
flag
--load-plugins=pylint_odoo
means we want to load plugin pylint-odoo flag-d all
means we want to disable all configuration then flag-e odoolint
means we want to enable configuration from odoolint Note: by default, you can find odoolint default configuration here