From fb575c0669872167f36f67c27e4ca414d431403c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 20 May 2024 21:10:56 +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/tox-dev/pyproject-fmt: 2.0.4 → 2.1.2](https://github.com/tox-dev/pyproject-fmt/compare/2.0.4...2.1.2) --- .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 cf01376c..c040d2aa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,7 @@ repos: - id: black - repo: https://github.com/tox-dev/pyproject-fmt - rev: 2.0.4 + rev: 2.1.2 hooks: - id: pyproject-fmt From 18da28a43fcac4d7747da30c04d58d0e675e76ff Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 20 May 2024 21:11:08 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pyproject.toml | 31 +++++++++++++------------------ 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 5b8089f0..012f955f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,9 +52,9 @@ target-versions = [ preview = true [tool.ruff] +target-version = "py38" line-length = 120 preview = true -target-version = "py38" lint.select = [ "A", "B", @@ -65,19 +65,19 @@ lint.select = [ "FURB", "G", "I", - "S", - "SIM", "PERF", "PIE", "Q", "RET", "RUF", + "S", + "SIM", "UP", "W", ] lint.extend-ignore = [ - "D107", "D105", + "D107", "D203", "D213", "D401", @@ -86,44 +86,39 @@ lint.extend-ignore = [ "RUF100", ] -[tool.ruff.lint.per-file-ignores] -"pillow_heif/__init__.py" = [ +lint.per-file-ignores."pillow_heif/__init__.py" = [ "F401", ] -"setup.py" = [ +lint.per-file-ignores."setup.py" = [ "S", ] - -[tool.ruff.lint.extend-per-file-ignores] -"benchmarks/**/*.py" = [ +lint.extend-per-file-ignores."benchmarks/**/*.py" = [ "D", "S404", "S603", ] -"docs/**/*.py" = [ +lint.extend-per-file-ignores."docs/**/*.py" = [ "D", ] -"examples/**/*.py" = [ +lint.extend-per-file-ignores."examples/**/*.py" = [ "D", "PERF", ] -"libheif/**/*.py" = [ +lint.extend-per-file-ignores."libheif/**/*.py" = [ "D", "PERF", "S", ] -"tests/**/*.py" = [ +lint.extend-per-file-ignores."tests/**/*.py" = [ "B009", "D", "E402", "PERF", "S", - "UP", "SIM115", + "UP", ] - -[tool.ruff.lint.mccabe] -max-complexity = 16 +lint.mccabe.max-complexity = 16 [tool.isort] profile = "black"