From 2c2c4c66af3ec0c0a7b443be4e93960e9c356dcc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 13 Feb 2024 01:00:54 +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.4.0 → v4.5.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v4.5.0) - [github.com/asottile/pyupgrade: v3.3.1 → v3.15.0](https://github.com/asottile/pyupgrade/compare/v3.3.1...v3.15.0) - [github.com/psf/black: 23.1.0 → 24.2.0](https://github.com/psf/black/compare/23.1.0...24.2.0) - [github.com/pycqa/flake8: 6.0.0 → 7.0.0](https://github.com/pycqa/flake8/compare/6.0.0...7.0.0) - [github.com/pre-commit/mirrors-mypy: v1.1.1 → v1.8.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.1.1...v1.8.0) - [github.com/PyCQA/pylint: v2.17.0 → v3.0.3](https://github.com/PyCQA/pylint/compare/v2.17.0...v3.0.3) --- .pre-commit-config.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ecb05d0..4c2e43a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ default_language_version: python: python3.10 repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 # Use the ref you want to point at + rev: v4.5.0 # Use the ref you want to point at hooks: - id: trailing-whitespace - id: check-yaml @@ -13,19 +13,19 @@ repos: - id: trailing-whitespace - id: check-executables-have-shebangs - repo: https://github.com/asottile/pyupgrade - rev: v3.3.1 + rev: v3.15.0 hooks: - id: pyupgrade - repo: https://github.com/psf/black - rev: 23.1.0 + rev: 24.2.0 hooks: - id: black - repo: https://github.com/pycqa/flake8 - rev: 6.0.0 + rev: 7.0.0 hooks: - id: flake8 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.1.1 + rev: v1.8.0 hooks: - id: mypy # empty args needed in order to match mypy cli behavior @@ -37,7 +37,7 @@ repos: - types-setuptools - types-docutils - repo: https://github.com/PyCQA/pylint - rev: v2.17.0 + rev: v3.0.3 hooks: - id: pylint additional_dependencies: From c560855791e2e24b0213e5b19edb7d2c6efe8e45 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 13 Feb 2024 01:01:16 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/doc8/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/doc8/__init__.py b/src/doc8/__init__.py index bfb66eb..f9f100a 100644 --- a/src/doc8/__init__.py +++ b/src/doc8/__init__.py @@ -1,4 +1,5 @@ """doc8 - A docutils linter.""" + from __future__ import annotations from doc8.version import __version__ from doc8.main import doc8 # noqa