From b13913025c86bd4ec509aaf9a4fc9e03cad73055 Mon Sep 17 00:00:00 2001 From: Joshua Lampert Date: Mon, 1 Dec 2025 14:38:20 +0100 Subject: [PATCH] move formatting to GitHub Action --- .github/workflows/FormatPR.yml | 11 +++++++++++ test/Project.toml | 4 ---- test/runtests.jl | 5 ----- 3 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/FormatPR.yml diff --git a/.github/workflows/FormatPR.yml b/.github/workflows/FormatPR.yml new file mode 100644 index 000000000..d5d549f84 --- /dev/null +++ b/.github/workflows/FormatPR.yml @@ -0,0 +1,11 @@ +name: Format suggestions +on: + pull_request + +jobs: + code-style: + runs-on: ubuntu-latest + steps: + - uses: julia-actions/julia-format@v4 + with: + version: '2.2.0' diff --git a/test/Project.toml b/test/Project.toml index e6b66c9cc..1c139b9e9 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -8,7 +8,6 @@ Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b" Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" Inflate = "d25df0c9-e2be-5dd7-82c8-3ad0b3e990b9" JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b" -JuliaFormatter = "98e50ef6-434e-11e9-1051-2b60c6c9e899" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" @@ -19,6 +18,3 @@ StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3" Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d" - -[compat] -JuliaFormatter = "2.2.0" diff --git a/test/runtests.jl b/test/runtests.jl index 34bd1c53f..f02b169dd 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -4,7 +4,6 @@ using Graphs using Graphs.SimpleGraphs using Graphs.Experimental using JET -using JuliaFormatter using Graphs.Test using Test using SparseArrays @@ -165,10 +164,6 @@ tests = [ Aqua.test_all(Graphs; ambiguities=false) end - @testset "Code formatting (JuliaFormatter.jl)" begin - @test format(Graphs; verbose=false, overwrite=false) - end - doctest(Graphs) @testset verbose = true "Actual tests" begin