From 22f3fad865249b52e0d01e9a3747823a58dc6917 Mon Sep 17 00:00:00 2001 From: Arthur Pastel Date: Wed, 28 Jun 2023 14:37:02 +0200 Subject: [PATCH] chore: replace isort by ruff --- .pre-commit-config.yaml | 6 +----- pyproject.toml | 5 ++--- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6081540..108e272 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,15 +12,11 @@ repos: rev: 22.3.0 hooks: - id: black - - repo: https://github.com/timothycrosley/isort.git - rev: "5.8.0" - hooks: - - id: isort - repo: https://github.com/pre-commit/mirrors-mypy rev: v0.961 hooks: - id: mypy - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.0.100 + rev: v0.0.275 hooks: - id: ruff diff --git a/pyproject.toml b/pyproject.toml index acb9553..003e52b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,12 +39,10 @@ dependencies = ["cffi ~= 1.15.1", "pytest>=3.8"] dev = [ "hatchling ~= 1.11.1", "black ~= 22.3.0", - "isort ~=5.8.0", - "flake8 ~= 5.0.4", "mypy ~= 0.961", + "ruff ~= 0.0.275", "pytest ~= 7.0", "pytest-cov ~= 4.0.0", - "ruff ~= 0.0.100", ] compatibility = ["pytest-benchmarks ~= 3.4.1"] @@ -59,6 +57,7 @@ include = ["/src"] [tool.ruff] line-length = 88 +select = ["E", "F", "I", "C"] [tool.isort] line_length = 88