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'] 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,