1414
1515exclude : |
1616 (?x)(
17- ^tests/test_cydifflib_expect.html
17+ ^tests/test_cydifflib_expect.html|
18+ tools/sdist.patch
1819 )
1920
20-
2121repos :
2222# Standard hooks
2323- repo : https://github.com/pre-commit/pre-commit-hooks
24- rev : " v4.5 .0"
24+ rev : " v5.0 .0"
2525 hooks :
2626 - id : check-added-large-files
2727 - id : check-case-conflict
@@ -37,27 +37,27 @@ repos:
3737 - id : trailing-whitespace
3838
3939# Black, the code formatter, natively supports pre-commit
40- - repo : https://github.com/psf/black
41- rev : " 24 .1.1 " # Keep in sync with blacken-docs
40+ - repo : https://github.com/psf/black-pre-commit-mirror
41+ rev : " 25 .1.0 " # Keep in sync with blacken-docs
4242 hooks :
4343 - id : black
4444
4545# Also code format the docs
4646- repo : https://github.com/asottile/blacken-docs
47- rev : " 1.16.0 "
47+ rev : " 1.19.1 "
4848 hooks :
4949 - id : blacken-docs
5050 additional_dependencies :
51- - black==22.8 .0 # keep in sync with black hook
51+ - black==24.2 .0 # keep in sync with black hook
5252
5353# Changes tabs to spaces
5454- repo : https://github.com/Lucas-C/pre-commit-hooks
55- rev : " v1.5.4 "
55+ rev : " v1.5.5 "
5656 hooks :
5757 - id : remove-tabs
5858
5959- repo : https://github.com/sirosen/texthooks
60- rev : " 0.6.4 "
60+ rev : " 0.6.8 "
6161 hooks :
6262 - id : fix-ligatures
6363 - id : fix-smartquotes
7474
7575# PyLint has native support - not always usable, but works for us
7676- repo : https://github.com/PyCQA/pylint
77- rev : " v3.0.3 "
77+ rev : " v3.3.6 "
7878 hooks :
7979 - id : pylint
8080 files : ^pybind11
@@ -99,30 +99,30 @@ repos:
9999
100100# Checks the manifest for missing files (native support)
101101- repo : https://github.com/mgedmin/check-manifest
102- rev : " 0.49 "
102+ rev : " 0.50 "
103103 hooks :
104104 - id : check-manifest
105105 # This is a slow hook, so only run this if --hook-stage manual is passed
106106 stages : [manual]
107107 additional_dependencies : [cmake, ninja]
108108
109109- repo : https://github.com/charliermarsh/ruff-pre-commit
110- rev : v0.2.0
110+ rev : v0.11.5
111111 hooks :
112112 - id : ruff
113113 args : ["--fix", "--show-fixes"]
114114
115115# Check for spelling
116116- repo : https://github.com/codespell-project/codespell
117- rev : " v2.2.6 "
117+ rev : " v2.4.1 "
118118 hooks :
119119 - id : codespell
120120 exclude : " .*/test_.*.py"
121121 args : ["-L", "aline,alo,ore"]
122122
123123# Check for common shell mistakes
124124- repo : https://github.com/shellcheck-py/shellcheck-py
125- rev : " v0.9 .0.6 "
125+ rev : " v0.10 .0.1 "
126126 hooks :
127127 - id : shellcheck
128128
@@ -134,3 +134,10 @@ repos:
134134 language : pygrep
135135 entry : PyBind|Numpy|Cmake|CCache|PyTest
136136 exclude : ^\.pre-commit-config.yaml$
137+
138+ # Clang format the codebase automatically
139+ - repo : https://github.com/pre-commit/mirrors-clang-format
140+ rev : " v20.1.0"
141+ hooks :
142+ - id : clang-format
143+ types_or : [c++, c]
0 commit comments