From 34769645c4df9b3db09a94b7cba785e8de0e69d9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 14 Apr 2025 17:40:51 +0000 Subject: [PATCH 1/3] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v5.0.0) - [github.com/domluna/JuliaFormatter.jl: v1.0.62 → v2.1.1](https://github.com/domluna/JuliaFormatter.jl/compare/v1.0.62...v2.1.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 65993659..04a720c5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v5.0.0 hooks: - id: check-merge-conflict - id: check-toml @@ -9,6 +9,6 @@ repos: exclude_types: [markdown] # incompatible with Literate.jl - repo: "https://github.com/domluna/JuliaFormatter.jl" - rev: v1.0.62 + rev: v2.1.1 hooks: - id: "julia-formatter" From 9ae6244a6e27c8628ca178feaf8ba2d69345f7ad Mon Sep 17 00:00:00 2001 From: mtfishman Date: Mon, 14 Apr 2025 14:31:42 -0400 Subject: [PATCH 2/3] Format --- test/runtests.jl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index 1c52c3e1..98b2d2b8 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -14,11 +14,13 @@ const GROUP = uppercase( ) "match files of the form `test_*.jl`, but exclude `*setup*.jl`" -istestfile(fn) = - endswith(fn, ".jl") && startswith(basename(fn), "test_") && !contains(fn, "setup") +function istestfile(fn) + return endswith(fn, ".jl") && startswith(basename(fn), "test_") && !contains(fn, "setup") +end "match files of the form `*.jl`, but exclude `*_notest.jl` and `*setup*.jl`" -isexamplefile(fn) = - endswith(fn, ".jl") && !endswith(fn, "_notest.jl") && !contains(fn, "setup") +function isexamplefile(fn) + return endswith(fn, ".jl") && !endswith(fn, "_notest.jl") && !contains(fn, "setup") +end @time begin # tests in groups based on folder structure From 71c9298e8e0bddc0382416ad6c2c01d47c754afa Mon Sep 17 00:00:00 2001 From: mtfishman Date: Mon, 14 Apr 2025 14:34:10 -0400 Subject: [PATCH 3/3] Update pre-commit --- .pre-commit-config.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 04a720c5..7de0cad3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,6 @@ +ci: + skip: [julia-formatter] + repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0