1515repos :
1616# Standard hooks
1717- repo : https://github.com/pre-commit/pre-commit-hooks
18- rev : v4.1.0
18+ rev : " v4.1.0"
1919 hooks :
2020 - id : check-added-large-files
2121 - id : check-case-conflict
@@ -32,46 +32,52 @@ repos:
3232
3333# Upgrade old Python syntax
3434- repo : https://github.com/asottile/pyupgrade
35- rev : v2.31.0
35+ rev : " v2.31.0"
3636 hooks :
3737 - id : pyupgrade
3838 args : [--py36-plus]
3939
4040# Nicely sort includes
4141- repo : https://github.com/PyCQA/isort
42- rev : 5.10.1
42+ rev : " 5.10.1"
4343 hooks :
4444 - id : isort
4545
4646# Black, the code formatter, natively supports pre-commit
4747- repo : https://github.com/psf/black
48- rev : 22.1.0 # Keep in sync with blacken-docs
48+ rev : " 22.1.0" # Keep in sync with blacken-docs
4949 hooks :
5050 - id : black
5151
5252# Also code format the docs
5353- repo : https://github.com/asottile/blacken-docs
54- rev : v1.12.1
54+ rev : " v1.12.1"
5555 hooks :
5656 - id : blacken-docs
5757 additional_dependencies :
5858 - black==22.1.0 # keep in sync with black hook
5959
6060# Changes tabs to spaces
6161- repo : https://github.com/Lucas-C/pre-commit-hooks
62- rev : v1.1.11
62+ rev : " v1.1.11"
6363 hooks :
6464 - id : remove-tabs
6565
66+ - repo : https://github.com/sirosen/texthooks
67+ rev : " 0.2.2"
68+ hooks :
69+ - id : fix-ligatures
70+ - id : fix-smartquotes
71+
6672# Autoremoves unused imports
6773- repo : https://github.com/hadialqattan/pycln
68- rev : v1.1.0
74+ rev : " v1.1.0"
6975 hooks :
7076 - id : pycln
7177
7278# Checking for common mistakes
7379- repo : https://github.com/pre-commit/pygrep-hooks
74- rev : v1.9.0
80+ rev : " v1.9.0"
7581 hooks :
7682 - id : python-check-blanket-noqa
7783 - id : python-check-blanket-type-ignore
8389
8490# Flake8 also supports pre-commit natively (same author)
8591- repo : https://github.com/PyCQA/flake8
86- rev : 4.0.1
92+ rev : " 4.0.1"
8793 hooks :
8894 - id : flake8
8995 additional_dependencies : &flake8_dependencies
@@ -93,14 +99,14 @@ repos:
9399
94100# Automatically remove noqa that are not used
95101- repo : https://github.com/asottile/yesqa
96- rev : v1.3.0
102+ rev : " v1.3.0"
97103 hooks :
98104 - id : yesqa
99105 additional_dependencies : *flake8_dependencies
100106
101107# CMake formatting
102108- repo : https://github.com/cheshirekow/cmake-format-precommit
103- rev : v0.6.13
109+ rev : " v0.6.13"
104110 hooks :
105111 - id : cmake-format
106112 additional_dependencies : [pyyaml]
@@ -109,7 +115,7 @@ repos:
109115
110116# Check static types with mypy
111117- repo : https://github.com/pre-commit/mirrors-mypy
112- rev : v0.931
118+ rev : " v0.931"
113119 hooks :
114120 - id : mypy
115121 args : [--show-error-codes]
@@ -127,15 +133,15 @@ repos:
127133
128134# Check for spelling
129135- repo : https://github.com/codespell-project/codespell
130- rev : v2.1.0
136+ rev : " v2.1.0"
131137 hooks :
132138 - id : codespell
133139 exclude : " .supp$"
134140 args : ["-L", "nd,ot,thist"]
135141
136142# Check for common shell mistakes
137143- repo : https://github.com/shellcheck-py/shellcheck-py
138- rev : v0.8.0.4
144+ rev : " v0.8.0.4"
139145 hooks :
140146 - id : shellcheck
141147
0 commit comments