From b67fb0b31635d4c1f5e14fef62134a02e7f0ed7c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Jun 2026 22:18:13 +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/econchick/interrogate: 1.6.0 → 1.7.0](https://github.com/econchick/interrogate/compare/1.6.0...1.7.0) - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 24.3.0 → 26.5.1](https://github.com/psf/black-pre-commit-mirror/compare/24.3.0...26.5.1) - [github.com/asottile/pyupgrade: v3.15.2 → v3.21.2](https://github.com/asottile/pyupgrade/compare/v3.15.2...v3.21.2) - [github.com/pycqa/isort: 5.13.2 → 9.0.0a3](https://github.com/pycqa/isort/compare/5.13.2...9.0.0a3) - [github.com/pycqa/flake8: 7.0.0 → 7.3.0](https://github.com/pycqa/flake8/compare/7.0.0...7.3.0) - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v6.0.0) --- .pre-commit-config.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a62269c..919a7da 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,38 +4,38 @@ ci: repos: - repo: https://github.com/econchick/interrogate - rev: 1.6.0 + rev: 1.7.0 hooks: - id: interrogate exclude: ^(docs/conf.py|setup.py|tests/functional/sample) args: [--config=pyproject.toml] - - repo: https://github.com/psf/black - rev: 24.3.0 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.5.1 hooks: - id: black exclude: ^(tests/functional/sample/full.pyi) - repo: https://github.com/asottile/pyupgrade - rev: v3.15.2 + rev: v3.21.2 hooks: - id: pyupgrade args: [--py38-plus] - repo: https://github.com/pycqa/isort - rev: 5.13.2 + rev: 9.0.0a3 hooks: - id: isort additional_dependencies: [toml] - repo: https://github.com/pycqa/flake8 - rev: 7.0.0 + rev: 7.3.0 hooks: - id: flake8 exclude: ^(tests/functional/sample) - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v6.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer From 30b97aee636f9e7563566ab539b45d8c9dcb19e2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Jun 2026 22:18:23 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/interrogate/__init__.py | 1 + src/interrogate/badge_gen.py | 1 + src/interrogate/config.py | 1 + src/interrogate/visit.py | 1 + tests/functional/sample/full.py | 1 + tests/functional/sample/partial.py | 1 + 6 files changed, 6 insertions(+) diff --git a/src/interrogate/__init__.py b/src/interrogate/__init__.py index 1d4ee72..62432b1 100644 --- a/src/interrogate/__init__.py +++ b/src/interrogate/__init__.py @@ -1,5 +1,6 @@ # Copyright 2020-2024 Lynn Root """Explain yourself! Interrogate a codebase for docstring coverage.""" + __author__ = "Lynn Root" __version__ = "1.7.0" __email__ = "lynn@lynnroot.com" diff --git a/src/interrogate/badge_gen.py b/src/interrogate/badge_gen.py index 8a9479c..a3f4dd0 100644 --- a/src/interrogate/badge_gen.py +++ b/src/interrogate/badge_gen.py @@ -3,6 +3,7 @@ Inspired by `coverage-badge `_. """ + from __future__ import annotations import os diff --git a/src/interrogate/config.py b/src/interrogate/config.py index 13dc0ac..abfa0d2 100644 --- a/src/interrogate/config.py +++ b/src/interrogate/config.py @@ -2,6 +2,7 @@ """ Configuration-related helpers. """ + # Adapted from Black https://github.com/psf/black/blob/master/black.py. from __future__ import annotations diff --git a/src/interrogate/visit.py b/src/interrogate/visit.py index e9aa906..8c57ddc 100644 --- a/src/interrogate/visit.py +++ b/src/interrogate/visit.py @@ -1,5 +1,6 @@ # Copyright 2020-2024 Lynn Root """AST traversal for finding docstrings.""" + from __future__ import annotations import ast diff --git a/tests/functional/sample/full.py b/tests/functional/sample/full.py index bfc3b01..981503f 100644 --- a/tests/functional/sample/full.py +++ b/tests/functional/sample/full.py @@ -1,5 +1,6 @@ # Copyright 2020-2024 Lynn Root """Sample module-level docs""" + import typing from typing import overload diff --git a/tests/functional/sample/partial.py b/tests/functional/sample/partial.py index 96eb6e4..8d2b631 100644 --- a/tests/functional/sample/partial.py +++ b/tests/functional/sample/partial.py @@ -1,5 +1,6 @@ # Copyright 2020-2024 Lynn Root """Sample module-level docs""" + import typing from typing import overload