Skip to content

Commit d11979b

Browse files
author
Joonalai
committed
Fix typo in QGS105 message
1 parent 97ce06e commit d11979b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

flake8_qgis/flake8_qgis.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
QGS102_AND_QGS104 = "{code} Use 'import {correct}' " "instead of 'import {incorrect}'"
2525
QGS105 = (
2626
"QGS105 Do not pass iface (QgisInterface) as an argument, "
27-
"instead import it: 'from qgs.utils import iface'"
27+
"instead import it: 'from qgis.utils import iface'"
2828
)
2929
QGS106 = "QGS106 Use 'from osgeo import {members}' " "instead of 'import {members}'"
3030

tests/test_flake8_qgis.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def some_function(somearg, iface):
107107
)
108108
assert ret == {
109109
"2:0 QGS105 Do not pass iface (QgisInterface) as an argument, instead import "
110-
"it: 'from qgs.utils import iface'"
110+
"it: 'from qgis.utils import iface'"
111111
}
112112

113113

@@ -120,7 +120,7 @@ def some_function(somearg, interface: QgisInterface):
120120
)
121121
assert ret == {
122122
"2:0 QGS105 Do not pass iface (QgisInterface) as an argument, instead import "
123-
"it: 'from qgs.utils import iface'"
123+
"it: 'from qgis.utils import iface'"
124124
}
125125

126126

@@ -134,7 +134,7 @@ def some_method(self, somearg, iface):
134134
)
135135
assert ret == {
136136
"3:4 QGS105 Do not pass iface (QgisInterface) as an argument, instead import "
137-
"it: 'from qgs.utils import iface'"
137+
"it: 'from qgis.utils import iface'"
138138
}
139139

140140

@@ -149,7 +149,7 @@ def some_method(somearg, iface):
149149
)
150150
assert len(ret) == 1 and list(ret)[0].endswith(
151151
"QGS105 Do not pass iface (QgisInterface) as an argument, instead import "
152-
"it: 'from qgs.utils import iface'"
152+
"it: 'from qgis.utils import iface'"
153153
)
154154

155155

0 commit comments

Comments
 (0)