Skip to content

Commit 4102e74

Browse files
Use standard formatting .yml action (#397)
1 parent 377d6d6 commit 4102e74

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

.github/workflows/Format.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Format suggestions
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
jobs:
8+
format:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: julia-actions/julia-format@v3
12+
with:
13+
version: '1' # Change this to pin to a specific JuliaFormatter version

Project.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
1515
Aqua = "0.8"
1616
Compat = "4.11"
1717
JSON = "0.18, 0.19, 0.20, 0.21"
18-
JuliaFormatter = "1"
1918
Logging = "<0.0.1, 1"
2019
Printf = "<0.0.1, 1"
2120
Profile = "<0.0.1, 1"
@@ -26,9 +25,8 @@ julia = "1.6"
2625

2726
[extras]
2827
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
29-
JuliaFormatter = "98e50ef6-434e-11e9-1051-2b60c6c9e899"
3028
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
3129
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
3230

3331
[targets]
34-
test = ["Aqua", "JuliaFormatter", "Statistics", "Test"]
32+
test = ["Aqua", "Statistics", "Test"]

test/runtests.jl

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
11
using Aqua
22
using BenchmarkTools
3-
using JuliaFormatter
43
using Test
54

65
print("Testing code quality...")
76
took_seconds = @elapsed Aqua.test_all(BenchmarkTools)
87
println("done (took ", took_seconds, " seconds)")
98

10-
if VERSION >= v"1.6"
11-
print("Testing code formatting...")
12-
took_seconds = @elapsed @test JuliaFormatter.format(
13-
BenchmarkTools; verbose=false, overwrite=false
14-
)
15-
println("done (took ", took_seconds, " seconds)")
16-
end
17-
189
print("Testing Parameters...")
1910
took_seconds = @elapsed include("ParametersTests.jl")
2011
println("done (took ", took_seconds, " seconds)")

0 commit comments

Comments
 (0)