Skip to content

Commit

Permalink
Merge pull request pypa#11062 from pradyunsg/update-pre-commit-hooks
Browse files Browse the repository at this point in the history
Update pre-commit hooks
  • Loading branch information
pradyunsg authored Apr 22, 2022
2 parents c247ddc + b68de24 commit 5570b42
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
15 changes: 8 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ exclude: 'src/pip/_vendor/'

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
rev: v4.2.0
hooks:
- id: check-builtin-literals
- id: check-added-large-files
Expand All @@ -26,9 +26,9 @@ repos:
hooks:
- id: flake8
additional_dependencies: [
'flake8-bugbear==20.1.4',
'flake8-bugbear==22.3.23',
'flake8-logging-format==0.6.0',
'flake8-implicit-str-concat==0.2.0',
'flake8-implicit-str-concat==0.3.0',
]
exclude: tests/data

Expand All @@ -47,10 +47,11 @@ repos:
additional_dependencies: [
'keyring==23.0.1',
'nox==2021.6.12',
'pytest==6.2.5',
'types-docutils==0.1.8',
'types-setuptools==57.0.2',
'types-six==0.1.9',
'pytest==7.1.1',
'types-docutils==0.18.3',
'types-setuptools==57.4.14',
'types-freezegun==1.1.9',
'types-six==1.16.15',
]

- repo: https://github.com/pre-commit/pygrep-hooks
Expand Down
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ extend-ignore =
G200, G202,
# black adds spaces around ':'
E203,
# using a cache
B019,
# reassigning variables in a loop
B020,
per-file-ignores =
# G: The plugin logging-format treats every .log and .error as logging.
noxfile.py: G
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_self_check_outdated.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from typing import Any, Optional, cast
from unittest import mock

import freezegun # type: ignore
import freezegun
import pytest
from pip._vendor.packaging.version import parse as parse_version

Expand Down

0 comments on commit 5570b42

Please sign in to comment.