From 58a51bc14015d211761e44c2bdacab09c3893668 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 23 Jun 2025 20:16:47 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.11.11 → v0.12.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.11.11...v0.12.0) - [github.com/pre-commit/mirrors-mypy: v1.15.0 → v1.16.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.15.0...v1.16.1) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e5554f64..9fb4a64d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.11.11" + rev: "v0.12.0" hooks: - id: ruff args: ["--fix"] @@ -23,7 +23,7 @@ repos: language: python additional_dependencies: [pygments, restructuredtext_lint] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.15.0 + rev: v1.16.1 hooks: - id: mypy files: ^(src/|testing/) From 0883ad085e0cf039c8ae13eb2789c1076544d225 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Tue, 24 Jun 2025 08:21:48 -0300 Subject: [PATCH 2/2] Fix Path usage in `test_rsync_roots_no_roots` --- testing/test_workermanage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/test_workermanage.py b/testing/test_workermanage.py index 6fb2795c..b3e8a1c7 100644 --- a/testing/test_workermanage.py +++ b/testing/test_workermanage.py @@ -206,8 +206,8 @@ def test_rsync_roots_no_roots( p = Path(p) print("remote curdir", p) assert p == dest.joinpath(config.rootpath.name) - assert p.joinpath("dir1").check() - assert p.joinpath("dir1", "file1").check() + assert p.joinpath("dir1").is_dir() + assert p.joinpath("dir1", "file1").is_file() def test_popen_rsync_subdir( self,