diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 88b60f3ecc..6d6b45e2c3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,10 +15,10 @@ default_language_version: python: python3 repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v4.6.0 hooks: - #- id: trailing-whitespace - #- id: end-of-file-fixer + - id: trailing-whitespace + - id: end-of-file-fixer - id: check-yaml - id: check-case-conflict - id: check-executables-have-shebangs @@ -41,6 +41,14 @@ repos: hooks: - id: rst-directive-colons - id: rst-inline-touching-normal +- repo: https://github.com/codespell-project/codespell + rev: v2.2.4 + hooks: + - id: codespell +- repo: https://github.com/crate-ci/typos + rev: v1.23.6 + hooks: + - id: typos - repo: https://github.com/PyCQA/isort rev: 5.13.2 hooks: @@ -72,7 +80,7 @@ repos: tools/update_copyright.py )$ - repo: https://github.com/PyCQA/autoflake - rev: v2.2.1 + rev: v2.3.1 hooks: - id: autoflake args: [--in-place, --remove-unused-variables, --remove-all-unused-imports, --remove-duplicate-keys] @@ -85,8 +93,8 @@ repos: tools/gen_convenience_header.py| tools/libtorrent_lldb.py ) -- repo: https://github.com/psf/black - rev: 24.2.0 +- repo: https://github.com/psf/black-pre-commit-mirror + rev: 24.8.0 hooks: - id: black # Avoiding PR bloat @@ -132,7 +140,7 @@ repos: name: black (pyi) types: [pyi] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.8.0 + rev: v1.11.1 hooks: - id: mypy # Avoiding PR bloat @@ -171,7 +179,7 @@ repos: tools/update_copyright.py )$ - repo: https://github.com/PyCQA/flake8 - rev: 7.0.0 + rev: 7.1.1 hooks: - id: flake8 exclude: |