Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: How to skip pylint check

by
Onestein B.V., Andrea Stirpe
- 11/07/2019 09:38:18
Try with:

self._cr.commit()  # pylint: disable=invalid-commit





From: "Lorenzo Battistini" <elbaddy@gmail.com>
To: "Contributors" <contributors@odoo-community.org>
Sent: Thursday, July 11, 2019 9:27:07 AM
Subject: How to skip pylint check

Hi all,

sometimes we need to avoid some lines of code being checked by pylint.
Example: we use self._cr.commit() on purpose and we want to avoid E8102 error.

I tried with
self._cr.commit()  # noqa
but it seems it is still failing:

So, how can I skip lint checks to make travis green?

Thanks!

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe


Reference