diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index eece56e0..70c773e9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,10 +20,11 @@ repos: rev: v2.37.3 hooks: - id: pyupgrade -- repo: https://github.com/psf/black - rev: 22.6.0 +- repo: https://github.com/astral-sh/ruff-pre-commit + # Ruff version. + rev: v0.4.10 hooks: - - id: black + - id: ruff-format - repo: https://github.com/PyCQA/flake8 rev: 5.0.4 hooks: diff --git a/setup.py b/setup.py index 33f61114..a0e4a55c 100644 --- a/setup.py +++ b/setup.py @@ -54,7 +54,7 @@ tests_require = [ "coveralls>=3.3,<4", ] -dev_requires = ["black==22.3.0", "flake8>=4,<5"] + tests_require +dev_requires = ["ruff==0.4.10", "flake8>=4,<5"] + tests_require setup( name="graphene",