From 8fba52ad5263b593aefa0fba8cef57ce7c5bfaa3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Apr 2026 17:55:08 +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.6.8 → v0.15.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.8...v0.15.9) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8db51f4e..c82013a3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,7 +26,7 @@ repos: - id: mixed-line-ending args: ["--fix=lf"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.8 + rev: v0.15.9 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From d9f3a3413dad730782e08d2ec9bbb11681eeb3b4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Apr 2026 17:56:41 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/oca_github_bot/tasks/tag_ready_to_merge.py | 3 +-- tests/test_manifest.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/oca_github_bot/tasks/tag_ready_to_merge.py b/src/oca_github_bot/tasks/tag_ready_to_merge.py index 25e199c0..7e6ac795 100644 --- a/src/oca_github_bot/tasks/tag_ready_to_merge.py +++ b/src/oca_github_bot/tasks/tag_ready_to_merge.py @@ -42,8 +42,7 @@ def tag_ready_to_merge(org, repo=None, dry_run=False): for issue in gh.search_issues(" ".join(query)): if dry_run: _logger.info( - f"DRY-RUN add {LABEL_READY_TO_MERGE} " - f"label to PR {issue.html_url}" + f"DRY-RUN add {LABEL_READY_TO_MERGE} label to PR {issue.html_url}" ) else: _logger.info(f"add {LABEL_READY_TO_MERGE} label to PR {issue.html_url}") diff --git a/tests/test_manifest.py b/tests/test_manifest.py index b160dcf9..31626c0d 100644 --- a/tests/test_manifest.py +++ b/tests/test_manifest.py @@ -176,7 +176,7 @@ def test_git_modified_addons_merge_base(git_clone): subprocess.check_call(["git", "commit", "-m", "[BOT] add addon2"], cwd=git_clone) assert git_modified_addons(git_clone, "origin/master") == ({"addon2"}, False) # create addon1 on a new branch - subprocess.check_call(["git", "checkout", "-b" "addon1"], cwd=git_clone) + subprocess.check_call(["git", "checkout", "-baddon1"], cwd=git_clone) addon1_dir = git_clone / "addon1" addon1_dir.mkdir() (addon1_dir / "__manifest__.py").write_text("{'name': 'addon1'}")