Open Gustry opened 2 years ago
Than you for the great idea! We will try to implement this soon.
Unfortunately, since ui files are not python files, flake8 is not a right tool to lint them. Maybe there should be another tool that can be used as a pre-commit hook to enable this?
It can be nice to check how custom widgets in UI file are imported.
The UI file must contain a block like :
It's wrong if the
extends
contains.h
.CF https://github.com/3liz/lizmap-plugin/blob/master/lizmap/test/test_code_layout.py#L26..L37