Skip to content

Commit 424f49e

Browse files
move formatting to GitHub Action (#476)
1 parent 4c3efb6 commit 424f49e

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

.github/workflows/FormatPR.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Format suggestions
2+
on:
3+
pull_request
4+
5+
jobs:
6+
code-style:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: julia-actions/julia-format@v4
10+
with:
11+
version: '2.2.0'

test/Project.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
88
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
99
Inflate = "d25df0c9-e2be-5dd7-82c8-3ad0b3e990b9"
1010
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
11-
JuliaFormatter = "98e50ef6-434e-11e9-1051-2b60c6c9e899"
1211
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1312
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
1413
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
@@ -19,6 +18,3 @@ StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
1918
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
2019
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2120
Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
22-
23-
[compat]
24-
JuliaFormatter = "2.2.0"

test/runtests.jl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ using Graphs
44
using Graphs.SimpleGraphs
55
using Graphs.Experimental
66
using JET
7-
using JuliaFormatter
87
using Graphs.Test
98
using Test
109
using SparseArrays
@@ -165,10 +164,6 @@ tests = [
165164
Aqua.test_all(Graphs; ambiguities=false)
166165
end
167166

168-
@testset "Code formatting (JuliaFormatter.jl)" begin
169-
@test format(Graphs; verbose=false, overwrite=false)
170-
end
171-
172167
doctest(Graphs)
173168

174169
@testset verbose = true "Actual tests" begin

0 commit comments

Comments
 (0)