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