diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0c1a220..36da72c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,26 +1,26 @@ repos: - - repo: https://github.com/asottile/reorder_python_imports - rev: v3.0.1 + - repo: https://github.com/asottile/reorder-python-imports + rev: v3.16.0 hooks: - id: reorder-python-imports - repo: https://github.com/asottile/pyupgrade - rev: v2.31.1 + rev: v3.21.2 hooks: - id: pyupgrade args: ['--py36-plus'] - - repo: https://github.com/psf/black - rev: 22.3.0 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.5.0 hooks: - id: black language_version: python3 - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.1.0 + rev: v6.0.0 hooks: - id: fix-byte-order-marker - id: trailing-whitespace - id: end-of-file-fixer - repo: https://github.com/pre-commit/mirrors-prettier - rev: 'v2.6.2' + rev: 'v4.0.0-alpha.8' hooks: - id: prettier types: [file] diff --git a/mypy_silent/maho.py b/mypy_silent/maho.py index c6efc96..79e365d 100644 --- a/mypy_silent/maho.py +++ b/mypy_silent/maho.py @@ -1,7 +1,6 @@ import re from typing import Optional - _type_ignore_re = re.compile(r"# type: ignore(\[[a-z, \-]+\])?")