Skip to content

Commit 6b379fd

Browse files
committed
Update pre-commit hooks
Signed-off-by: Pedro Algarvio <[email protected]>
1 parent bd3b660 commit 6b379fd

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
minimum_pre_commit_version: 2.4.0
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.3.0
5+
rev: v4.4.0
66
hooks:
77
- id: check-merge-conflict # Check for files that contain merge conflict strings.
88
- id: trailing-whitespace # Trims trailing whitespace.
@@ -18,7 +18,7 @@ repos:
1818

1919
# ----- Formatting ---------------------------------------------------------------------------->
2020
- repo: https://github.com/asottile/reorder_python_imports
21-
rev: v3.8.2
21+
rev: v3.9.0
2222
hooks:
2323
- id: reorder-python-imports
2424
args: [
@@ -39,7 +39,7 @@ repos:
3939
)\.py$
4040

4141
- repo: https://github.com/asottile/pyupgrade
42-
rev: v2.38.0
42+
rev: v3.3.1
4343
hooks:
4444
- id: pyupgrade
4545
name: Rewrite Code to be Py3.9+
@@ -56,20 +56,20 @@ repos:
5656
)\.py
5757

5858
- repo: https://github.com/psf/black
59-
rev: 22.8.0
59+
rev: 23.1.0
6060
hooks:
6161
- id: black
6262
args: [-l 100]
6363
exclude: src/ptscripts/version.py
6464

6565
- repo: https://github.com/asottile/blacken-docs
66-
rev: v1.12.1
66+
rev: 1.13.0
6767
hooks:
6868
- id: blacken-docs
6969
args: [--skip-errors]
7070
files: ^(docs/.*\.rst|src/ptscripts/.*\.py)$
7171
additional_dependencies:
72-
- black==22.8.0.
72+
- black==23.1.0.
7373
# <---- Formatting -----------------------------------------------------------------------------
7474

7575
# ----- Security ------------------------------------------------------------------------------>
@@ -94,7 +94,7 @@ repos:
9494

9595
# ----- Code Analysis ------------------------------------------------------------------------->
9696
- repo: https://github.com/pycqa/flake8
97-
rev: '5.0.4'
97+
rev: '6.0.0'
9898
hooks:
9999
- id: flake8
100100
exclude: ^(demo/.*|src/ptscripts/version\.py|\.pre-commit-hooks/.*\.py)$
@@ -104,7 +104,7 @@ repos:
104104
- flake8-typing-imports
105105

106106
- repo: https://github.com/pre-commit/mirrors-mypy
107-
rev: v0.971
107+
rev: v1.0.0
108108
hooks:
109109
- id: mypy
110110
name: Run mypy against the code base

changelog/16.trivial.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update pre-commit hooks versions

0 commit comments

Comments
 (0)