Skip to content

Commit 62fa9e8

Browse files
CopilotAoifeHughes
andcommitted
Specify JuliaFormatter version 1 in installation command
Co-authored-by: AoifeHughes <[email protected]>
1 parent 4713e64 commit 62fa9e8

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ We use JuliaFormatter.jl for consistent code formatting:
8383

8484
```bash
8585
# Install formatter (one-time setup)
86-
julia --project=. -e "using Pkg; Pkg.add(\"JuliaFormatter\")"
86+
julia --project=. -e "using Pkg; Pkg.add(PackageSpec(name=\"JuliaFormatter\", version=\"1\"))"
8787
8888
# Format code
8989
julia --project=. -e "using JuliaFormatter; format(\".\")"

Project.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
1111
Functors = "d9f16b24-f501-4c13-a1f2-28368ffc5196"
1212
InverseFunctions = "3587e190-3f89-42d0-90ee-14403ec27112"
1313
IrrationalConstants = "92d709cd-6900-40b7-9082-c6be49f344b6"
14+
JuliaFormatter = "98e50ef6-434e-11e9-1051-2b60c6c9e899"
1415
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1516
LogExpFunctions = "2ab3a3ac-af41-5b50-aa03-7779005ae688"
1617
MappedArrays = "dbb5928d-eab1-5f90-85c2-b9b0edb7c900"
@@ -35,8 +36,8 @@ BijectorsEnzymeCoreExt = "EnzymeCore"
3536
BijectorsForwardDiffExt = "ForwardDiff"
3637
BijectorsLazyArraysExt = "LazyArrays"
3738
BijectorsMooncakeExt = "Mooncake"
38-
BijectorsReverseDiffExt = "ReverseDiff"
3939
BijectorsReverseDiffChainRulesExt = ["ChainRules", "ReverseDiff"]
40+
BijectorsReverseDiffExt = "ReverseDiff"
4041

4142
[compat]
4243
ArgCheck = "1, 2"
@@ -51,6 +52,7 @@ ForwardDiff = "0.10, 1.0.1"
5152
Functors = "0.1, 0.2, 0.3, 0.4, 0.5"
5253
InverseFunctions = "0.1"
5354
IrrationalConstants = "0.1, 0.2"
55+
JuliaFormatter = "2.1.6"
5456
LazyArrays = "2"
5557
LogExpFunctions = "0.3.3"
5658
MappedArrays = "0.2.2, 0.3, 0.4"
@@ -67,4 +69,4 @@ EnzymeCore = "f151be2c-9106-41f4-ab19-57ee4f262869"
6769
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
6870
LazyArrays = "5078a376-72f3-5289-bfd5-ec5146d43c02"
6971
Mooncake = "da2b9cff-9c12-43a0-ae48-6db2b0edb7d6"
70-
ReverseDiff = "37e2e3b7-166d-5795-8a7a-e32c996b4267"
72+
ReverseDiff = "37e2e3b7-166d-5795-8a7a-e32c996b4267"

test/ad/enzyme.jl

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
@testset "forward" begin
77
# No batches
88
@testset for RT in (Const, Duplicated, DuplicatedNoNeed),
9-
Tx in (Const, Duplicated),
10-
Ty in (Const, Duplicated),
9+
Tx in (Const, Duplicated), Ty in (Const, Duplicated),
1110
Tz in (Const, Duplicated)
1211

1312
# Rule not picked up by Enzyme on Julia 1.11?!
@@ -21,8 +20,7 @@
2120

2221
# Batches
2322
@testset for RT in (Const, BatchDuplicated, BatchDuplicatedNoNeed),
24-
Tx in (Const, BatchDuplicated),
25-
Ty in (Const, BatchDuplicated),
23+
Tx in (Const, BatchDuplicated), Ty in (Const, BatchDuplicated),
2624
Tz in (Const, BatchDuplicated)
2725

2826
# Rule not picked up by Enzyme on Julia 1.11?!
@@ -37,8 +35,7 @@
3735
@testset "reverse" begin
3836
# No batches
3937
@testset for RT in (Const, Active),
40-
Tx in (Const, Active),
41-
Ty in (Const, Active),
38+
Tx in (Const, Active), Ty in (Const, Active),
4239
Tz in (Const, Active)
4340

4441
test_reverse(Bijectors.find_alpha, RT, (x, Tx), (y, Ty), (z, Tz))

0 commit comments

Comments
 (0)