Skip to content

Commit

Permalink
Merge pull request #12622 from ichard26/bump-pre-commit
Browse files Browse the repository at this point in the history
Bump pre-commit hooks
  • Loading branch information
sbidoul authored Apr 20, 2024
2 parents 491846b + 2b97317 commit 9fe1a92
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ exclude: 'src/pip/_vendor/'

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-builtin-literals
- id: check-added-large-files
Expand All @@ -22,13 +22,13 @@ repos:
- id: black

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.6
rev: v0.4.1
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
rev: v1.9.0
hooks:
- id: mypy
exclude: tests/data
Expand Down
1 change: 1 addition & 0 deletions news/a870a527-a6ea-46fd-b4aa-c0b0d9b669b0.trivial.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bump pre-commit hooks.
4 changes: 2 additions & 2 deletions src/pip/_internal/metadata/_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from email.header import Header, decode_header, make_header
from email.message import Message
from typing import Any, Dict, List, Union
from typing import Any, Dict, List, Union, cast

METADATA_FIELDS = [
# Name, Multiple-Use
Expand Down Expand Up @@ -77,7 +77,7 @@ def sanitise_header(h: Union[Header, str]) -> str:
value = value.split()
result[key] = value

payload = msg.get_payload()
payload = cast(str, msg.get_payload())
if payload:
result["description"] = payload

Expand Down

0 comments on commit 9fe1a92

Please sign in to comment.