From a83e236ed71d203f4e53b1edcd2938a0a3e74334 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 20 Jan 2025 17:36:45 +0000 Subject: [PATCH] Update pre-commit requirement from ~=3.5 to >=3.5,<5.0 (#475) Updates the requirements on [pre-commit](https://github.com/pre-commit/pre-commit) to permit the latest version. - [Release notes](https://github.com/pre-commit/pre-commit/releases) - [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md) - [Commits](https://github.com/pre-commit/pre-commit/compare/v3.5.0...v4.0.0) --- updated-dependencies: - dependency-name: pre-commit dependency-type: direct:production ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 4 ++-- pyproject.toml | 2 +- tox.ini | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b17be5a9..359497c2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.9.1 + rev: v0.9.2 hooks: - id: ruff - id: ruff-format @@ -12,4 +12,4 @@ repos: rev: 1.19.1 hooks: - id: blacken-docs - additional_dependencies: [black==23.12.1] + additional_dependencies: [black==24.10.0] diff --git a/pyproject.toml b/pyproject.toml index 2f1712c5..0bf3bd08 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,7 +28,7 @@ Source = "https://github.com/sloria/TextBlob" [project.optional-dependencies] docs = ["sphinx==8.1.3", "sphinx-issues==5.0.0", "PyYAML==6.0.2"] tests = ["pytest", "numpy"] -dev = ["textblob[tests]", "tox", "pre-commit~=3.5"] +dev = ["textblob[tests]", "tox", "pre-commit>=3.5,<5.0"] [build-system] requires = ["flit_core<4"] diff --git a/tox.ini b/tox.ini index b2b7f172..044ef186 100644 --- a/tox.ini +++ b/tox.ini @@ -12,7 +12,7 @@ commands = pytest {posargs} [testenv:lint] -deps = pre-commit~=3.5 +deps = pre-commit>=3.5,<5.0 skip_install = true commands = pre-commit run --all-files