diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 77a72299b..8bf1647f9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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] diff --git a/requirements-tests.txt b/requirements-tests.txt index 76480b503..9987fa2ca 100644 --- a/requirements-tests.txt +++ b/requirements-tests.txt @@ -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 diff --git a/tests/utils.py b/tests/utils.py index 7913bfaa1..1a47dd8d3 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -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)