From 30bdfd101c0395a89112bd6fd9a7bdb175a1fd1b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 9 May 2026 21:23:59 +0000 Subject: [PATCH 1/2] Bump the github-actions group with 2 updates Bumps the github-actions group with 2 updates: [r-lib/actions](https://github.com/r-lib/actions) and [github/codeql-action](https://github.com/github/codeql-action). Updates `r-lib/actions` from 2.11.4 to 2.12.0 - [Release notes](https://github.com/r-lib/actions/releases) - [Changelog](https://github.com/r-lib/actions/blob/v2-branch/NEWS.md) - [Commits](https://github.com/r-lib/actions/compare/6f6e5bc62fba3a704f74e7ad7ef7676c5c6a2590...a51a8012b0aab7c32ef9d19bf54da93f3254335e) Updates `github/codeql-action` from 4.35.2 to 4.35.3 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/95e58e9a2cdfd71adc6e0353d5c52f41a045d225...e46ed2cbd01164d986452f91f178727624ae40d7) --- updated-dependencies: - dependency-name: r-lib/actions dependency-version: 2.12.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: github/codeql-action dependency-version: 4.35.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions ... Signed-off-by: dependabot[bot] --- .github/workflows/main.yml | 2 +- .github/workflows/zizmor.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index be90511..a9f1a32 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -55,7 +55,7 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 with: persist-credentials: false - - uses: r-lib/actions/setup-tinytex@6f6e5bc62fba3a704f74e7ad7ef7676c5c6a2590 # v2 + - uses: r-lib/actions/setup-tinytex@a51a8012b0aab7c32ef9d19bf54da93f3254335e # v2 if: runner.os != 'Windows' - uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 with: diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml index fb5a933..7229e34 100644 --- a/.github/workflows/zizmor.yml +++ b/.github/workflows/zizmor.yml @@ -43,6 +43,6 @@ jobs: always() && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) - uses: github/codeql-action/upload-sarif@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4 + uses: github/codeql-action/upload-sarif@e46ed2cbd01164d986452f91f178727624ae40d7 # v4 with: sarif_file: zizmor.sarif From 1dc09170a40d5cc0c8f4ad807cb759b636d11255 Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Sun, 10 May 2026 13:32:48 +0200 Subject: [PATCH 2/2] Fix ty checks --- src/pytask_latex/collect.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/pytask_latex/collect.py b/src/pytask_latex/collect.py index 927f249..a0ec8e9 100644 --- a/src/pytask_latex/collect.py +++ b/src/pytask_latex/collect.py @@ -228,7 +228,7 @@ def pytask_collect_modify_tasks(session: Session, tasks: list[PTask]) -> None: all_products = { product.path for task in tasks - for product in tree_leaves(task.produces) + for product in tree_leaves(task.produces) # ty: ignore[invalid-argument-type] if isinstance(product, PPathNode) } latex_tasks = [task for task in tasks if has_mark(task, "latex")] @@ -262,7 +262,7 @@ def _add_latex_dependencies_retroactively( try: path_to_tex = task.depends_on["_path_to_tex"] scanned_deps = ( - set(lds.scan(path_to_tex.path)) + set(lds.scan(path_to_tex.path)) # ty: ignore[invalid-argument-type] if isinstance(path_to_tex, PPathNode) else set() ) @@ -275,7 +275,9 @@ def _add_latex_dependencies_retroactively( # Remove duplicated dependencies which have already been added by the user and those # which do not exist. task_deps = { - i.path for i in tree_leaves(task.depends_on) if isinstance(i, PPathNode) + i.path + for i in tree_leaves(task.depends_on) # ty: ignore[invalid-argument-type] + if isinstance(i, PPathNode) } additional_deps = scanned_deps - task_deps new_deps = [i for i in additional_deps if i in all_products or i.exists()] @@ -296,7 +298,7 @@ def _add_latex_dependencies_retroactively( task_name=task.name, ), ), - new_deps, + new_deps, # ty: ignore[invalid-argument-type] ) task.depends_on["_scanned_dependencies"] = collected_dependencies