Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d8ef303

Browse files
authored
Bump pycln and pathspec test dependencies (#10251)
1 parent b25150a commit d8ef303

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repos:
1111
- id: mixed-line-ending
1212
- id: check-case-conflict
1313
- repo: https://github.com/hadialqattan/pycln
14-
rev: v2.1.3 # must match requirements-tests.txt
14+
rev: v2.1.5 # must match requirements-tests.txt
1515
hooks:
1616
- id: pycln
1717
args: [--config=pyproject.toml]

requirements-tests.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ flake8-pyi==23.5.0; python_version >= "3.8" # must match .pre-commit-confi
77
isort==5.12.0; python_version >= "3.8" # must match .pre-commit-config.yaml
88
mypy==1.3.0
99
packaging==23.1
10-
pathspec>=0.10.3
10+
pathspec>=0.11.1
1111
pre-commit-hooks==4.4.0 # must match .pre-commit-config.yaml
12-
pycln==2.1.3 # must match .pre-commit-config.yaml
12+
pycln==2.1.5 # must match .pre-commit-config.yaml
1313
pytype==2023.6.2; platform_system != "Windows" and python_version < "3.11"
1414
pyyaml==6.0
1515
stubdefaulter==0.1.0

tests/utils.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,4 @@ def spec_matches_path(spec: pathspec.PathSpec, path: Path) -> bool:
134134
normalized_path = path.as_posix()
135135
if path.is_dir():
136136
normalized_path += "/"
137-
# pathspec.PathSpec.match_file has partially Unknown file parameter
138-
# https://github.com/cpburnz/python-pathspec/pull/75
139-
return spec.match_file(normalized_path) # pyright: ignore[reportUnknownMemberType]
137+
return spec.match_file(normalized_path)

0 commit comments

Comments
 (0)