From 47a598afaa29132f611d7ec30ca2226543b94e25 Mon Sep 17 00:00:00 2001 From: SigureMo Date: Sun, 14 Sep 2025 16:22:16 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20deps:=20bump=20ruff=20?= =?UTF-8?q?to=20v0.13.0=20and=20remove=20`UP038`=20from=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 2 +- pyproject.toml | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6bb0e5c..d322fae 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.9.6 + rev: v0.13.0 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix, --no-cache] diff --git a/pyproject.toml b/pyproject.toml index d0977c6..4396edb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -77,10 +77,9 @@ select = [ "RUF100", ] ignore = [ - "E501", # line too long, duplicate with ruff fmt - "F401", # imported but unused, duplicate with pyright - "F841", # local variable is assigned to but never used, duplicate with pyright - "UP038", # It will cause the performance regression on python3.10 + "E501", # line too long, duplicate with ruff fmt + "F401", # imported but unused, duplicate with pyright + "F841", # local variable is assigned to but never used, duplicate with pyright ] [tool.ruff.lint.isort] From 69cbac06d0113de196437222e19a1e6fbbc612af Mon Sep 17 00:00:00 2001 From: SigureMo Date: Sun, 14 Sep 2025 17:30:01 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=90=9B=20fix:=20enable=20future=20ann?= =?UTF-8?q?otations=20in=20ruff=20configuration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 4396edb..abb6429 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -81,6 +81,7 @@ ignore = [ "F401", # imported but unused, duplicate with pyright "F841", # local variable is assigned to but never used, duplicate with pyright ] +future-annotations = true [tool.ruff.lint.isort] required-imports = ["from __future__ import annotations"]