Skip to content

Commit 024b536

Browse files
DimitriPapadopoulosadrienverge
authored andcommitted
style: silence pygrep-hooks warnings
PGH004 Use specific rule codes when using `noqa`
1 parent 329500a commit 024b536

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
sys.path.insert(0, os.path.abspath('..'))
99

10-
from yamllint import __copyright__, APP_NAME, APP_VERSION # noqa
10+
from yamllint import __copyright__, APP_NAME, APP_VERSION # noqa: I001, E402
1111

1212
# -- General configuration ------------------------------------------------
1313

tests/rules/test_indentation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def test_non_indented_sequences(self):
192192
'BMapStart B_MAP:0 KEY:0 VAL:2 B_SEQ:0 B_ENT:2 B_MAP:2\n'
193193
' Key B_MAP:0 KEY:0 VAL:2 B_SEQ:0 B_ENT:2 B_MAP:2 KEY:2\n'
194194
' Scalar B_MAP:0 KEY:0 VAL:2 B_SEQ:0 B_ENT:2 B_MAP:2 KEY:2\n'
195-
' Value B_MAP:0 KEY:0 VAL:2 B_SEQ:0 B_ENT:2 B_MAP:2 KEY:2 VAL:4\n' # noqa
195+
' Value B_MAP:0 KEY:0 VAL:2 B_SEQ:0 B_ENT:2 B_MAP:2 KEY:2 VAL:4\n'
196196
' Scalar B_MAP:0 KEY:0 VAL:2 B_SEQ:0 B_ENT:2 B_MAP:2\n'
197197
' BEnd B_MAP:0\n'
198198
# missing BEnd here

0 commit comments

Comments
 (0)