Skip to content

Commit 90f7b32

Browse files
authored
meta project quality test with Aqua (#140)
* relax ambiguity checks * use Aqua for meta quality test This includes a bunch of tests including ambiguity checks
1 parent ff0d630 commit 90f7b32

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

Project.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ version = "1.1.3"
66
julia = "0.7, 1"
77

88
[extras]
9+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
910
CatIndices = "aafaddc9-749c-510e-ac4f-586e18779b91"
1011
DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab"
1112
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1213
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1314

1415
[targets]
15-
test = ["CatIndices", "DelimitedFiles", "Test", "LinearAlgebra"]
16+
test = ["Aqua", "CatIndices", "DelimitedFiles", "Test", "LinearAlgebra"]

test/runtests.jl

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
using OffsetArrays
2-
using Test
3-
using DelimitedFiles
42
using OffsetArrays: IdentityUnitRange, no_offset_view
5-
using CatIndices: BidirectionalVector
3+
using Test, Aqua
64
using LinearAlgebra
5+
using DelimitedFiles
6+
using CatIndices: BidirectionalVector
77

8-
@test isempty(detect_ambiguities(OffsetArrays, Base, Core))
8+
@testset "Project meta quality checks" begin
9+
# Not checking compat section for test-only dependencies
10+
Aqua.test_all(OffsetArrays; project_extras=true, deps_compat=true, stale_deps=true, project_toml_formatting=true)
11+
end
912

1013
@testset "IdOffsetRange" begin
1114
function same_value(r1, r2)

0 commit comments

Comments
 (0)