File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ select = [
9494 " ISC" , # flake8-implicit-str-concat
9595 " N" , # pep8-naming
9696 " PL" , # pylint
97+ " PGH" , # pygrep-hooks
9798 " PIE" , # flake8-pie
9899 " PYI" , # flake8-pyi
99100 " RET" , # flake8-return
Original file line number Diff line number Diff line change @@ -1175,7 +1175,7 @@ def test_fail_envelope_deserialization(self) -> None:
11751175
11761176 def test_fail_payload_serialization (self ) -> None :
11771177 with self .assertRaises (SerializationError ):
1178- SimpleEnvelope .from_signed ("foo" ) # type: ignore
1178+ SimpleEnvelope .from_signed ("foo" ) # type: ignore[type-var]
11791179
11801180 def test_fail_payload_deserialization (self ) -> None :
11811181 payloads = [b"[" , b'{"_type": "foo"}' ]
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ def test_md_eq_special_signatures_tests(self) -> None:
132132 self .assertEqual (md , md_2 )
133133
134134 # Metadata objects with different signatures types are not equal.
135- md_2 .signatures = "" # type: ignore
135+ md_2 .signatures = "" # type: ignore[assignment]
136136 self .assertNotEqual (md , md_2 )
137137
138138 def test_delegations_eq_roles_reversed_order (self ) -> None :
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ from tempfile import TemporaryDirectory
1919from typing import Optional
2020
2121try :
22- import build as _ # type: ignore # noqa: F401
22+ import build as _ # type: ignore[import-not-found] # noqa: F401
2323 import requests
2424except ImportError :
2525 print ("Error: verify_release requires modules 'requests' and 'build':" )
You can’t perform that action at this time.
0 commit comments