mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Bump pycln and pathspec test dependencies (#10251)
This commit is contained in:
@@ -11,7 +11,7 @@ repos:
|
||||
- id: mixed-line-ending
|
||||
- id: check-case-conflict
|
||||
- repo: https://github.com/hadialqattan/pycln
|
||||
rev: v2.1.3 # must match requirements-tests.txt
|
||||
rev: v2.1.5 # must match requirements-tests.txt
|
||||
hooks:
|
||||
- id: pycln
|
||||
args: [--config=pyproject.toml]
|
||||
|
||||
@@ -7,9 +7,9 @@ flake8-pyi==23.5.0; python_version >= "3.8" # must match .pre-commit-confi
|
||||
isort==5.12.0; python_version >= "3.8" # must match .pre-commit-config.yaml
|
||||
mypy==1.3.0
|
||||
packaging==23.1
|
||||
pathspec>=0.10.3
|
||||
pathspec>=0.11.1
|
||||
pre-commit-hooks==4.4.0 # must match .pre-commit-config.yaml
|
||||
pycln==2.1.3 # must match .pre-commit-config.yaml
|
||||
pycln==2.1.5 # must match .pre-commit-config.yaml
|
||||
pytype==2023.6.2; platform_system != "Windows" and python_version < "3.11"
|
||||
pyyaml==6.0
|
||||
stubdefaulter==0.1.0
|
||||
|
||||
@@ -134,6 +134,4 @@ def spec_matches_path(spec: pathspec.PathSpec, path: Path) -> bool:
|
||||
normalized_path = path.as_posix()
|
||||
if path.is_dir():
|
||||
normalized_path += "/"
|
||||
# pathspec.PathSpec.match_file has partially Unknown file parameter
|
||||
# https://github.com/cpburnz/python-pathspec/pull/75
|
||||
return spec.match_file(normalized_path) # pyright: ignore[reportUnknownMemberType]
|
||||
return spec.match_file(normalized_path)
|
||||
|
||||
Reference in New Issue
Block a user