Skip to content

Commit 5570b42

Browse files
authored
Merge pull request #11062 from pradyunsg/update-pre-commit-hooks
Update pre-commit hooks
2 parents c247ddc + b68de24 commit 5570b42

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ exclude: 'src/pip/_vendor/'
22

33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.1.0
5+
rev: v4.2.0
66
hooks:
77
- id: check-builtin-literals
88
- id: check-added-large-files
@@ -26,9 +26,9 @@ repos:
2626
hooks:
2727
- id: flake8
2828
additional_dependencies: [
29-
'flake8-bugbear==20.1.4',
29+
'flake8-bugbear==22.3.23',
3030
'flake8-logging-format==0.6.0',
31-
'flake8-implicit-str-concat==0.2.0',
31+
'flake8-implicit-str-concat==0.3.0',
3232
]
3333
exclude: tests/data
3434

@@ -47,10 +47,11 @@ repos:
4747
additional_dependencies: [
4848
'keyring==23.0.1',
4949
'nox==2021.6.12',
50-
'pytest==6.2.5',
51-
'types-docutils==0.1.8',
52-
'types-setuptools==57.0.2',
53-
'types-six==0.1.9',
50+
'pytest==7.1.1',
51+
'types-docutils==0.18.3',
52+
'types-setuptools==57.4.14',
53+
'types-freezegun==1.1.9',
54+
'types-six==1.16.15',
5455
]
5556

5657
- repo: https://github.com/pre-commit/pygrep-hooks

setup.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ extend-ignore =
2424
G200, G202,
2525
# black adds spaces around ':'
2626
E203,
27+
# using a cache
28+
B019,
29+
# reassigning variables in a loop
30+
B020,
2731
per-file-ignores =
2832
# G: The plugin logging-format treats every .log and .error as logging.
2933
noxfile.py: G

tests/unit/test_self_check_outdated.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from typing import Any, Optional, cast
77
from unittest import mock
88

9-
import freezegun # type: ignore
9+
import freezegun
1010
import pytest
1111
from pip._vendor.packaging.version import parse as parse_version
1212

0 commit comments

Comments
 (0)