From ed459f016ce79207abb862af39c7eeaabfee85e8 Mon Sep 17 00:00:00 2001 From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> Date: Mon, 25 Nov 2024 04:31:29 +0000 Subject: [PATCH] :heavy_minus_sign: replace isort with ruff --- poetry.lock | 16 +--------------- pyproject.toml | 1 - scripts/run-codegen.sh | 2 +- 3 files changed, 2 insertions(+), 17 deletions(-) diff --git a/poetry.lock b/poetry.lock index 0335731df..817e75664 100644 --- a/poetry.lock +++ b/poetry.lock @@ -703,20 +703,6 @@ files = [ {file = "iniconfig-2.0.0.tar.gz", hash = "sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3"}, ] -[[package]] -name = "isort" -version = "5.13.2" -description = "A Python utility / library to sort Python imports." -optional = false -python-versions = ">=3.8.0" -files = [ - {file = "isort-5.13.2-py3-none-any.whl", hash = "sha256:8ca5e72a8d85860d5a3fa69b8745237f2939afe12dbf656afbcb47fe72d947a6"}, - {file = "isort-5.13.2.tar.gz", hash = "sha256:48fdfcb9face5d58a4f6dde2e72a1fb8dcaf8ab26f95ab49fab84c2ddefb0109"}, -] - -[package.extras] -colors = ["colorama (>=0.4.6)"] - [[package]] name = "jinja2" version = "3.1.4" @@ -1822,4 +1808,4 @@ jwt = ["PyJWT"] [metadata] lock-version = "2.0" python-versions = "^3.9" -content-hash = "4fb06232f6f9d4c8c17278725c67aa833170377f5eadaf9c210d2b241bbbddd0" +content-hash = "671d10e95995dde15472e638ad8db017f8257e391d6bb96f5158137c734fb541" diff --git a/pyproject.toml b/pyproject.toml index eab2b2543..571dcd73f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,7 +23,6 @@ PyJWT = { version = "^2.4.0", extras = ["crypto"], optional = true } [tool.poetry.group.dev.dependencies] ruff = "^0.8.0" redis = "^5.2.0" -isort = "^5.13.2" Jinja2 = "^3.1.2" nonemoji = "^0.1.2" pre-commit = "^4.0.0" diff --git a/scripts/run-codegen.sh b/scripts/run-codegen.sh index fb60a8550..fad4289e6 100755 --- a/scripts/run-codegen.sh +++ b/scripts/run-codegen.sh @@ -5,4 +5,4 @@ set -e # cd to the root of the project cd "$(dirname "$0")/.." -python -m codegen && isort . && ruff check --fix --exit-zero . && ruff format . +python -m codegen && ruff check --select I --fix --exit-zero . && ruff check --fix --exit-zero . && ruff format .