From 6eb8d4b6c798f4e1cea40825a082ce777bf73130 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 9 Aug 2024 09:58:41 -0700 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#397) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Kemal Zebari --- .pre-commit-config.yaml | 4 ++-- pyproject.toml | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c5f6748..c3024b4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,12 +15,12 @@ repos: - id: tox-ini-fmt args: ["-p", "fix"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: "2.1.4" + rev: "2.2.1" hooks: - id: pyproject-fmt additional_dependencies: ["tox>=4.12.1"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.5.4" + rev: "v0.5.6" hooks: - id: ruff-format - id: ruff diff --git a/pyproject.toml b/pyproject.toml index 2ea3769..a56ab89 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -76,6 +76,7 @@ lint.select = [ "ALL", ] lint.ignore = [ + "A005", # Don't care about shadowing builtin modules "ANN101", # No type annotation for self "ANN102", # Missing type annotation for `cls` in classmethod "ANN401", # Dynamically typed expressions (typing.Any) are disallowed in @@ -84,6 +85,8 @@ lint.ignore = [ "D104", # Missing docstring in public package "D203", # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible "D212", # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible + "DOC201", # TODO: Read the comment for DOC501 for details + "DOC501", # TODO: Remove this once ruff supports Sphinx-style doc-strings; see https://github.com/astral-sh/ruff/issues/12434 "INP001", # no implicit namespace "ISC001", # Conflict with formatter "S101", # asserts allowed