You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all,
Since 3 years, OCA openugprade project is not a fork of odoo, but just two "classic" odoo modules.
We deployed OCA CI and pre-commit and we face to a lot of non blocking warnings that are poluting logs.
As fair as I understand, it detects that end-migration is a module, so it raises a warning, because README.rst file is absent.
Do you know why ? That's quite annoying, when we are running pre-commit locally.
Note : I faced to the same issue, in other GRAP OCA modules, when there is a "migrations" folder. But here, in the current case, there are 200 migration folders...
Does it make sense to use pylint-odoo for this project? I'd think flake8 is sufficient. Or you can disable messages in .pylintrc?
Some checks maybe doesn't make sense or will be useless, but framework module contains code that can be "pylinted" and migrations scripts contains python files that can be also checked. relative-import, sql-injection, ...
In fact, for the time being, I just disabled one check here : https://github.com/OCA/OpenUpgrade/blob/16.0/.pylintrc#L72 because there are a lot of xml files. (noupdate_changes.xml) that are not imported in the manifest. (file-not-used)
Well, my question is why pylint think that a subfolder is a module.
(If not found, indeed I can disable missing-readme, but I think that something is wrong somewhere).
Hi all,
Since 3 years, OCA openugprade project is not a fork of odoo, but just two "classic" odoo modules.
We deployed OCA CI and pre-commit and we face to a lot of non blocking warnings that are poluting logs.
https://github.com/OCA/OpenUpgrade/actions/runs/5146604073/jobs/9265883758?pr=3905#step:4:87
As fair as I understand, it detects that end-migration is a module, so it raises a warning, because README.rst file is absent.
Do you know why ? That's quite annoying, when we are running pre-commit locally.
Note : I faced to the same issue, in other GRAP OCA modules, when there is a "migrations" folder. But here, in the current case, there are 200 migration folders...
CC : @yajo, @sbidoul, @pedrobaeza
Kind regards.
The text was updated successfully, but these errors were encountered: