Skip to content

Commit ed80f97

Browse files
committed
chore: update pre-commit hooks
1 parent 4208324 commit ed80f97

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
default_stages: [commit]
22
repos:
33
- repo: https://github.com/ambv/black
4-
rev: 21.9b0
4+
rev: 22.3.0
55
hooks:
66
- id: black
77
language_version: python3
@@ -13,37 +13,38 @@ repos:
1313
- id: flake8
1414

1515
- repo: https://github.com/pre-commit/mirrors-mypy
16-
rev: v0.910
16+
rev: v0.961
1717
hooks:
1818
- id: mypy
19+
additional_dependencies: [types-requests]
1920

2021
- repo: https://github.com/pre-commit/pre-commit-hooks
21-
rev: v4.0.1
22+
rev: v4.3.0
2223
hooks:
2324
- id: check-json
2425
- id: check-added-large-files
2526
- id: check-yaml
2627

2728
- repo: https://github.com/pre-commit/mirrors-isort
28-
rev: v5.9.3
29+
rev: v5.10.1
2930
hooks:
3031
- id: isort
3132
args: [--settings-path, setup.cfg]
3233

3334
- repo: https://github.com/Woile/commitizen
34-
rev: v2.18.1
35+
rev: v2.27.1
3536
hooks:
3637
- id: commitizen
3738
# don't forget to run pre-commit install --hook-type commit-msg for this hook to run
3839
stages: [commit-msg]
3940

4041
- repo: https://github.com/pre-commit/mirrors-prettier # to format JSON, YAML and markdown files among others
41-
rev: v2.4.1
42+
rev: v2.7.1
4243
hooks:
4344
- id: prettier
4445

4546
- repo: https://github.com/gitguardian/gg-shield
46-
rev: v1.8.2
47+
rev: v1.12.0
4748
hooks:
4849
- id: ggshield
4950
language_version: python3

Pipfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pygitguardian = { editable = true, path = "." }
99
requests = ">=2"
1010

1111
[dev-packages]
12-
black = "==21.9b0"
12+
black = "==22.3.0"
1313
coverage = "*"
1414
flake8 = "*"
1515
flake8-isort = "*"
@@ -18,4 +18,5 @@ isort = "*"
1818
pre-commit = "*"
1919
pytest = "*"
2020
vcrpy = "*"
21-
mypy = "*"
21+
mypy = "==0.961"
22+
types-requests = "*"

0 commit comments

Comments
 (0)