diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f5e881d..3cab024 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,12 +1,12 @@ --- repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: end-of-file-fixer - id: trailing-whitespace - id: mixed-line-ending - - id: check-byte-order-marker + - id: fix-byte-order-marker - id: check-executables-have-shebangs - id: check-merge-conflict - id: check-symlinks @@ -15,7 +15,7 @@ repos: - id: check-yaml files: .*\.(yaml|yml)$ - repo: https://github.com/codespell-project/codespell - rev: v2.2.6 + rev: v2.4.1 hooks: - id: codespell name: codespell @@ -27,18 +27,18 @@ repos: require_serial: false additional_dependencies: [] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.4.4" + rev: "v0.11.7" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] - id: ruff-format - repo: https://github.com/adrienverge/yamllint - rev: v1.35.1 + rev: v1.37.0 hooks: - id: yamllint files: \.(yaml|yml)$ - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.10.0 + rev: v1.15.0 hooks: - id: mypy additional_dependencies: diff --git a/src/pre_commit_hooks/arabic_presentation_form/__init__.py b/src/pre_commit_hooks/arabic_presentation_form/__init__.py index 7ac63fb..a26ba14 100644 --- a/src/pre_commit_hooks/arabic_presentation_form/__init__.py +++ b/src/pre_commit_hooks/arabic_presentation_form/__init__.py @@ -18,7 +18,7 @@ ) from . import char_map -sys.stdout.reconfigure( # type: ignore[attr-defined] +sys.stdout.reconfigure( # type: ignore[union-attr] encoding="utf-8" # For Windows: we want to be sure to use UTF-8 ) RulesDict = dict[re.Pattern[Any], str]