Bump pycln and pathspec test dependencies (#10251)

This commit is contained in:
Alex Waygood
2023-06-03 14:46:33 +01:00
committed by GitHub
parent b25150aa30
commit d8ef303e00
3 changed files with 4 additions and 6 deletions

View File

@@ -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]

View File

@@ -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

View File

@@ -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)