Odoo Discussion

Welcome!

This community is for professionals and enthusiasts of our products and services.
Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

0

How to exclude module/folder from linting?

Avatar
Antonio Yamuta

Daniel R.

Today I had to write an extension module, that was overriding a extension-unfriendly paid module.

In this case I want to copy paste the original method to add my modifications to, and I don't want automatic formatting or lint checks.

This can be achieved with these comment directives:
# flake8: noqa
# pylint: disable=C,E,W
# fmt: off


If you want to exclude a full module, don't do this - just place it in the paid-addons folder, that should be excluded from linting.  


https://chat.google.com/room/AAAA7zDSTkM/Aj_x77OC_po/Aj_x77OC_po?cls=10

Avatar
Discard

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!