From 1868e7c270733f3400b8e09279ed0e8a7111f27a Mon Sep 17 00:00:00 2001 From: Natty Linden Date: Tue, 18 Jun 2024 20:55:18 +0000 Subject: [PATCH] Update pre-commit hooks to avoid isort installation error These are the current versions as identified by `pre-commit autoupdate`. To install the isort hook, pre-commit will install whatever the newest Poetry is. A backward incompatible change in Poetry broke support for how isort was declaring its "extra" dependency on pip-shims, so existing isorts became no longer installable. Upgrade the isort hook to 5.12.0+ so we get their pyproject.toml fix: Co-authored-by: Phronimos Linden <40007007+phronimos-linden@users.noreply.github.com> --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e5f01bc..fae0520 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,13 +1,13 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.6.0 hooks: - id: check-ast - id: check-yaml - id: mixed-line-ending - id: trailing-whitespace - repo: https://github.com/pycqa/isort - rev: 5.10.1 + rev: 5.13.2 hooks: - id: isort args: [--line-length=120]