Skip to content

Commit b1836a6

Browse files
authored
Add Aqua to tests and add stdlib versions (#306)
* Add Aqua to tests and add stdlib versions * Move Aqua tests to runtests.jl * Fix import and move Aqua tests to the bottom
1 parent 0b99716 commit b1836a6

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

Project.toml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,27 @@ StructArraysStaticArraysExt = "StaticArrays"
2525

2626
[compat]
2727
Adapt = "3.4, 4"
28+
Aqua = "0.8"
2829
ConstructionBase = "1"
2930
DataAPI = "1"
31+
Documenter = "1"
3032
GPUArraysCore = "0.1.2"
3133
InfiniteArrays = "0.13"
34+
JLArrays = "0.1"
35+
LinearAlgebra = "1"
36+
OffsetArrays = "1"
37+
PooledArrays = "1"
38+
SparseArrays = "1"
3239
StaticArrays = "1.5.6"
3340
Tables = "1"
41+
Test = "1"
42+
TypedTables = "1"
43+
WeakRefStrings = "1"
3444
julia = "1.6"
3545

3646
[extras]
3747
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
48+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
3849
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3950
GPUArraysCore = "46192b85-c4d5-4398-a991-12ede77f4527"
4051
InfiniteArrays = "4858937d-0d70-526a-a4dd-2d5cb5dd786c"
@@ -49,4 +60,4 @@ TypedTables = "9d95f2ec-7b3d-5a63-8d20-e2491e220bb9"
4960
WeakRefStrings = "ea10d353-3f73-51f8-a26c-33c1cb351aa5"
5061

5162
[targets]
52-
test = ["Adapt", "Documenter", "GPUArraysCore", "InfiniteArrays", "JLArrays", "LinearAlgebra", "OffsetArrays", "PooledArrays", "SparseArrays", "StaticArrays", "Test", "TypedTables", "WeakRefStrings"]
63+
test = ["Adapt", "Aqua", "Documenter", "GPUArraysCore", "InfiniteArrays", "JLArrays", "LinearAlgebra", "OffsetArrays", "PooledArrays", "SparseArrays", "StaticArrays", "Test", "TypedTables", "WeakRefStrings"]

test/runtests.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ using LinearAlgebra
1212
using Test
1313
using SparseArrays
1414
using InfiniteArrays
15+
import Aqua
1516

1617
using Documenter: doctest
1718
if Base.VERSION == v"1.6" && Int === Int64
@@ -1540,3 +1541,7 @@ end
15401541
S = StructArray{Complex{Int}}((1:∞, 1:∞))
15411542
@test Base.IteratorSize(S) == Base.IsInfinite()
15421543
end
1544+
1545+
@testset "project quality" begin
1546+
Aqua.test_all(StructArrays, ambiguities=(; broken=true))
1547+
end

0 commit comments

Comments
 (0)