From 44c13612e1993636d70f9b7af23f2d25094f1b22 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 27 May 2024 16:54:40 -0700 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#371) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/codespell-project/codespell: v2.2.6 → v2.3.0](https://github.com/codespell-project/codespell/compare/v2.2.6...v2.3.0) - [github.com/tox-dev/pyproject-fmt: 2.1.1 → 2.1.3](https://github.com/tox-dev/pyproject-fmt/compare/2.1.1...2.1.3) - [github.com/astral-sh/ruff-pre-commit: v0.4.4 → v0.4.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.4...v0.4.5) --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 6 +++--- pyproject.toml | 28 ++++++++++++++-------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a8dba73..930f5aa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/codespell-project/codespell - rev: v2.2.6 + rev: v2.3.0 hooks: - id: codespell args: ["--write-changes"] @@ -15,12 +15,12 @@ repos: - id: tox-ini-fmt args: ["-p", "fix"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: "2.1.1" + rev: "2.1.3" hooks: - id: pyproject-fmt additional_dependencies: ["tox>=4.12.1"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.4.4" + rev: "v0.4.5" hooks: - id: ruff-format - id: ruff diff --git a/pyproject.toml b/pyproject.toml index f3e45ea..2ea3769 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -75,20 +75,6 @@ format.docstring-code-format = true lint.select = [ "ALL", ] -lint.per-file-ignores."tests/**/*.py" = [ - "D", # don"t care about documentation in tests - "FBT", # don"t care about booleans as positional arguments in tests - "PLC2701", # Private import in tests - "PLR0913", # any number of arguments in tests - "PLR0917", # any number of arguments in tests - "PLR2004", # Magic value used in comparison, consider replacing with a constant variable - "S603", # `subprocess` call: check for execution of untrusted input -] -lint.isort = { known-first-party = [ - "pipdeptree", -], required-imports = [ - "from __future__ import annotations", -] } lint.ignore = [ "ANN101", # No type annotation for self "ANN102", # Missing type annotation for `cls` in classmethod @@ -103,6 +89,20 @@ lint.ignore = [ "S101", # asserts allowed "S104", # Possible binding to all interface ] +lint.per-file-ignores."tests/**/*.py" = [ + "D", # don"t care about documentation in tests + "FBT", # don"t care about booleans as positional arguments in tests + "PLC2701", # Private import in tests + "PLR0913", # any number of arguments in tests + "PLR0917", # any number of arguments in tests + "PLR2004", # Magic value used in comparison, consider replacing with a constant variable + "S603", # `subprocess` call: check for execution of untrusted input +] +lint.isort = { known-first-party = [ + "pipdeptree", +], required-imports = [ + "from __future__ import annotations", +] } lint.preview = true [tool.codespell]