GispoCoding / flake8-qgis

Flake8 plugin for QGIS python plugins
MIT License
6 stars 4 forks source link

Make an exception with _3d import on QGS101 and QGS102 #11

Closed LKajan closed 4 months ago

LKajan commented 4 months ago

Should be merged after #10.

Usually QGS101 or QGS102 is thrown when importing _ prefixed modules. _3d is currently an exception to this rule, so we should not throw an error when importing it. Importing just 3d would throw and SyntaxError because 3d is not a valid package name because of the leading digit. _3d is the only way to use the 3d module.

Resolves: #9