From bff5db744a46b701a7ba01b28b184f98b6648e69 Mon Sep 17 00:00:00 2001 From: Damian Shaw Date: Sun, 4 Aug 2024 15:16:38 -0400 Subject: [PATCH 1/2] Update ruff, fix E721 --- .pre-commit-config.yaml | 2 +- src/pip/_internal/utils/misc.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7880e0cb409..27816138007 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,7 +22,7 @@ repos: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.0 + rev: v0.5.6 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/src/pip/_internal/utils/misc.py b/src/pip/_internal/utils/misc.py index 3707e872684..f6f13ed121f 100644 --- a/src/pip/_internal/utils/misc.py +++ b/src/pip/_internal/utils/misc.py @@ -555,7 +555,7 @@ def __str__(self) -> str: # This is useful for testing. def __eq__(self, other: Any) -> bool: - if type(self) != type(other): + if type(self) is not type(other): return False # The string being used for redaction doesn't also have to match, From 605fdecb97b2b42ae9dfa6959d69461b47d0a124 Mon Sep 17 00:00:00 2001 From: Damian Shaw Date: Sun, 4 Aug 2024 15:20:12 -0400 Subject: [PATCH 2/2] NEWS ENTRY --- news/12893.trivial.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 news/12893.trivial.rst diff --git a/news/12893.trivial.rst b/news/12893.trivial.rst new file mode 100644 index 00000000000..d0a0de14310 --- /dev/null +++ b/news/12893.trivial.rst @@ -0,0 +1 @@ +Update ruff in pre-commit to 0.5.6