From 025a31af57a121772c1a1fb4015bac86fc1166c9 Mon Sep 17 00:00:00 2001 From: Dhaval Gojiya Date: Tue, 28 Apr 2026 18:42:28 +0530 Subject: [PATCH] fix: remove legacy Ruff configuration options such as target-version and hook ID --- .pre-commit-config.yaml | 2 +- pyproject.toml | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 31dc8e5..afb2dee 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.15.2 hooks: - - id: ruff + - id: ruff-check args: [--fix, --exit-non-zero-on-fix] - id: ruff-format diff --git a/pyproject.toml b/pyproject.toml index 937984a..ba20d2e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,11 +27,6 @@ requires-python = ">= 3.9" [project.urls] Homepage = "https://libraryofcongress.github.io/bagit-python/" -[tool] - -[tool.ruff] -target-version = "py38" - [tool.isort] line_length = 110 default_section = "THIRDPARTY"