diff --git a/.github/workflows/ubuntu-tests.yml b/.github/workflows/ubuntu-tests.yml index fa5640f54e3..8e7fe04eaba 100644 --- a/.github/workflows/ubuntu-tests.yml +++ b/.github/workflows/ubuntu-tests.yml @@ -25,7 +25,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.14", "3.13", "3.12", "3.11", "3.10"] + python-version: ["3.12", "3.11", "3.10"] steps: - name: Check out repository diff --git a/cecli/watch.py b/cecli/watch.py index a573e739eff..6c4e0fe8a35 100644 --- a/cecli/watch.py +++ b/cecli/watch.py @@ -55,8 +55,11 @@ def load_gitignores(gitignore_paths: list[Path]) -> Optional[PathSpec]: ] # Always ignore for path in gitignore_paths: if path.exists(): - with open(path) as f: - patterns.extend(f.readlines()) + try: + with open(path, "r", encoding="utf-8", errors="ignore") as f: + patterns.extend(f.readlines()) + except Exception: + pass # Ignore files that can't be read return PathSpec.from_lines(GitWildMatchPattern, patterns) if patterns else None diff --git a/requirements/requirements.in b/requirements/requirements.in index 1c13b060815..a90c8c82473 100644 --- a/requirements/requirements.in +++ b/requirements/requirements.in @@ -47,4 +47,5 @@ importlib-metadata>=7.2.1 tomli>=2.3.0; python_version <= "3.10" tree-sitter==0.23.2; python_version < "3.10" -tree-sitter>=0.25.1; python_version >= "3.10" \ No newline at end of file +tree-sitter>=0.25.1; python_version >= "3.10" +tree-sitter-languages>=1.10.2