Skip to content

Commit

Permalink
style: silence pygrep-hooks warnings
Browse files Browse the repository at this point in the history
PGH004 Use specific rule codes when using `noqa`
  • Loading branch information
DimitriPapadopoulos authored and adrienverge committed Jan 20, 2024
1 parent 329500a commit 024b536
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

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

from yamllint import __copyright__, APP_NAME, APP_VERSION # noqa
from yamllint import __copyright__, APP_NAME, APP_VERSION # noqa: I001, E402

# -- General configuration ------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion tests/rules/test_indentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def test_non_indented_sequences(self):
'BMapStart B_MAP:0 KEY:0 VAL:2 B_SEQ:0 B_ENT:2 B_MAP:2\n'
' Key B_MAP:0 KEY:0 VAL:2 B_SEQ:0 B_ENT:2 B_MAP:2 KEY:2\n'
' Scalar B_MAP:0 KEY:0 VAL:2 B_SEQ:0 B_ENT:2 B_MAP:2 KEY:2\n'
' Value B_MAP:0 KEY:0 VAL:2 B_SEQ:0 B_ENT:2 B_MAP:2 KEY:2 VAL:4\n' # noqa
' Value B_MAP:0 KEY:0 VAL:2 B_SEQ:0 B_ENT:2 B_MAP:2 KEY:2 VAL:4\n'
' Scalar B_MAP:0 KEY:0 VAL:2 B_SEQ:0 B_ENT:2 B_MAP:2\n'
' BEnd B_MAP:0\n'
# missing BEnd here
Expand Down

0 comments on commit 024b536

Please sign in to comment.