From 7c474d65e55305268f84e5fbd678686fbc084b27 Mon Sep 17 00:00:00 2001 From: Dulmandakh Date: Sun, 23 Jun 2024 22:25:18 +0800 Subject: [PATCH] precommit, setup py --- .pre-commit-config.yaml | 7 ++++--- setup.py | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) 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",