Skip to content

Commit

Permalink
Add pre-commit typos & codespell hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
xavier2k6 committed Aug 6, 2024
1 parent 2ab8fed commit a06b999
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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]
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit a06b999

Please sign in to comment.