Skip to content

Commit 0b4c9ff

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Fix small flake8 issues pointed out by the pre-commit script"
2 parents 269ea9e + f4769ef commit 0b4c9ff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ovn_octavia_provider/hacking/checks.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
r"\bfrom[\s]+ovn_octavia_provider[\s]+import[\s]+tests\b")
4343
no_line_continuation_backslash_re = re.compile(r'.*(\\)\n')
4444

45-
import_mock = re.compile(r"\bimport[\s]+mock\b")
45+
import_mock = re.compile(r"\bimport[\s]+mock\b") # noqa: H216
4646
import_from_mock = re.compile(r"\bfrom[\s]+mock[\s]+import\b")
4747

4848

@@ -153,7 +153,7 @@ def check_no_imports_from_tests(logical_line, filename):
153153

154154
for regex in tests_imports_dot, tests_imports_from1, tests_imports_from2:
155155
if re.match(regex, logical_line):
156-
yield(0, msg)
156+
yield (0, msg)
157157

158158

159159
@core.flake8ext
@@ -164,7 +164,7 @@ def check_python3_no_filter(logical_line):
164164
"filter(lambda obj: test(obj), data) on python3.")
165165

166166
if filter_match.match(logical_line):
167-
yield(0, msg)
167+
yield (0, msg)
168168

169169

170170
@core.flake8ext
@@ -180,7 +180,7 @@ def check_no_import_mock(logical_line, filename, noqa):
180180

181181
for regex in import_mock, import_from_mock:
182182
if re.match(regex, logical_line):
183-
yield(0, msg)
183+
yield (0, msg)
184184

185185

186186
@core.flake8ext

0 commit comments

Comments
 (0)