diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d49badef..14a712b0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,9 @@ +default_language_version: + python: python3.11 + repos: -- repo: git://github.com/pre-commit/pre-commit-hooks - rev: v2.1.0 +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.4.0 hooks: - id: check-merge-conflict - id: check-json @@ -14,15 +17,14 @@ repos: - id: trailing-whitespace exclude: README.md - repo: https://github.com/asottile/pyupgrade - rev: v1.12.0 + rev: v3.10.1 hooks: - id: pyupgrade -- repo: https://github.com/ambv/black - rev: 21.6b0 +- repo: https://github.com/psf/black + rev: 23.7.0 hooks: - - id: black - language_version: python3 + - id: black - repo: https://github.com/PyCQA/flake8 - rev: 3.9.2 + rev: 6.1.0 hooks: - id: flake8 diff --git a/tox.ini b/tox.ini index 0320b4d6..da428d8b 100644 --- a/tox.ini +++ b/tox.ini @@ -22,12 +22,13 @@ commands = py3{8,9,10,11,12-dev}: py.test --cov=graphene graphene examples tests_asyncio tests_py36 {posargs} [testenv:pre-commit] +basepython = python3.11 deps = - pre-commit>0.12.0 + pre-commit>=3,<4 setenv = LC_CTYPE=en_US.UTF-8 commands = - pre-commit {posargs:run --all-files} + pre-commit run --all-files --show-diff-on-failure [testenv:mypy] deps =