From 14f9ade0e32083f9ff8b950a5f3ae9c4424479c4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 8 Jul 2024 19:27:39 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.4.8 → v0.5.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.8...v0.5.1) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 80acd024..aa31b0c9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -29,7 +29,7 @@ repos: .*\.ipynb )$ - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.4.8" + rev: "v0.5.1" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From 2072db9f1611a40a7d7945f15c789fc07c1f4824 Mon Sep 17 00:00:00 2001 From: Ivan Shcheklein Date: Sun, 14 Jul 2024 07:20:11 -0700 Subject: [PATCH 2/2] ignore SIM103 It seems that code becomes less readable --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index a2450297..07e6e2bd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -140,7 +140,7 @@ files = ["src", "tests"] ignore-words-list = "fpr" [tool.ruff.lint] -ignore = ["N818", "UP006", "UP007", "UP035", "UP038", "B905", "PGH003"] +ignore = ["N818", "UP006", "UP007", "UP035", "UP038", "B905", "PGH003", "SIM103"] select = ["F", "E", "W", "C90", "N", "UP", "YTT", "S", "BLE", "B", "A", "C4", "T10", "EXE", "ISC", "INP", "PIE", "T20", "PT", "Q", "RSE", "RET", "SLF", "SIM", "TID", "TCH", "INT", "ARG", "PGH", "PL", "TRY", "NPY", "RUF"] [tool.ruff.lint.per-file-ignores]