From 354c39fa6d1cb25a3858683cb0024c9dbe4d669e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 29 Oct 2024 00:36:33 +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/pre-commit/pre-commit-hooks: v4.5.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v5.0.0) - [github.com/asottile/reorder-python-imports: v3.12.0 → v3.14.0](https://github.com/asottile/reorder-python-imports/compare/v3.12.0...v3.14.0) - [github.com/psf/black: 23.12.1 → 24.10.0](https://github.com/psf/black/compare/23.12.1...24.10.0) - [github.com/asottile/pyupgrade: v3.15.0 → v3.19.0](https://github.com/asottile/pyupgrade/compare/v3.15.0...v3.19.0) - [github.com/asottile/setup-cfg-fmt: v2.5.0 → v2.7.0](https://github.com/asottile/setup-cfg-fmt/compare/v2.5.0...v2.7.0) --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fffe028..40ee07b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,29 +1,29 @@ exclude: ^tests/fixtures/ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v5.0.0 hooks: - id: check-yaml - id: debug-statements - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/asottile/reorder-python-imports - rev: v3.12.0 + rev: v3.14.0 hooks: - id: reorder-python-imports args: [--application-directories, '.:src', --py37-plus] - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.10.0 hooks: - id: black args: [--line-length=79] - repo: https://github.com/asottile/pyupgrade - rev: v3.15.0 + rev: v3.19.0 hooks: - id: pyupgrade args: [--py37-plus] - repo: https://github.com/asottile/setup-cfg-fmt - rev: v2.5.0 + rev: v2.7.0 hooks: - id: setup-cfg-fmt args: [--min-py3-version, '3.7'] From 2dec194a5e11b70448c27e75f7e0727fee5511ea Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 29 Oct 2024 00:37:20 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- flake8_docstrings.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/flake8_docstrings.py b/flake8_docstrings.py index 3d74d9e..9330f63 100644 --- a/flake8_docstrings.py +++ b/flake8_docstrings.py @@ -3,6 +3,7 @@ pydocstyle docstrings convention needs error code and class parser for be included as module into flake8 """ + import re supports_ignore_inline_noqa = False @@ -156,9 +157,9 @@ def _call_check_source(self): else None ) if supports_ignore_self_only_init: - check_source_kwargs[ - "ignore_self_only_init" - ] = self.ignore_self_only_init + check_source_kwargs["ignore_self_only_init"] = ( + self.ignore_self_only_init + ) return self.checker.check_source( self.source,