Skip to content

Commit 7ee2c5b

Browse files
committed
Aqua + typos CI
1 parent 169b1cc commit 7ee2c5b

File tree

7 files changed

+25
-6
lines changed

7 files changed

+25
-6
lines changed

.typos.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[default.extend-words]

Project.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,27 @@ PreallocationTools = "d236fae5-4411-538c-8e31-a6e3d9e00b46"
1414
RecursiveArrayTools = "731186ca-8d62-57ce-b412-fbd966d074cd"
1515

1616
[compat]
17+
Aqua = "0.8"
1718
ArrayInterface = "7"
1819
ChainRulesCore = "1"
20+
ChainRulesTestUtils = "1"
1921
ForwardDiff = "0.10.3"
22+
InteractiveUtils = "1"
23+
LinearAlgebra = "1"
2024
MacroTools = "0.5"
25+
OrdinaryDiffEq = "6"
2126
PreallocationTools = "0.4"
2227
RecursiveArrayTools = "2"
2328
StaticArrays = "1.0"
29+
Test = "1"
2430
julia = "1.6"
2531

2632
[extras]
33+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
2734
ChainRulesTestUtils = "cdddcdb0-9152-4a09-a978-84456f9df70a"
2835
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
2936
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
3037
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
3138

3239
[targets]
33-
test = ["Test", "OrdinaryDiffEq", "InteractiveUtils", "ChainRulesTestUtils"]
40+
test = ["Aqua", "Test", "OrdinaryDiffEq", "InteractiveUtils", "ChainRulesTestUtils"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ julia> SLArray{Tuple{2, 2}}(a = 1, b = 2, c = 3, d = 4)
7979

8080
Constructing copies with some items changed is supported by
8181
a keyword constructor whose first argument is the source and
82-
additonal keyword arguments change several entries.
82+
additional keyword arguments change several entries.
8383

8484
```julia
8585
julia> v1 = SLVector(a = 1.1, b = 2.2, c = 3.3);

src/LabelledArrays.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ end
8484

8585
export SLArray, LArray, SLVector, LVector, @SLVector, @LArray, @LVector, @SLArray
8686

87-
export @SLSliced, @LSliced
88-
89-
export symbols, dimSymbols, rowSymbols, colSymbols
87+
export symbols
9088

9189
end # module

src/larray.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ macro LVector(type, syms)
286286
end
287287
end
288288

289-
#the following gives errror: TypeError: in <:, expected Type, got TypeVar
289+
#the following gives error: TypeError: in <:, expected Type, got TypeVar
290290
#symbols(::LArray{T,N,D<:AbstractArray{T,N},Syms}) where {T,N,D,Syms} = Syms
291291

292292
"""

test/qa.jl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using LabelledArrays, Aqua
2+
@testset "Aqua" begin
3+
Aqua.find_persistent_tasks_deps(LabelledArrays)
4+
Aqua.test_ambiguities(LabelledArrays, recursive = false, broken = true)
5+
Aqua.test_deps_compat(LabelledArrays)
6+
Aqua.test_piracies(LabelledArrays,
7+
treat_as_own = [])
8+
Aqua.test_project_extras(LabelledArrays)
9+
Aqua.test_stale_deps(LabelledArrays)
10+
Aqua.test_unbound_args(LabelledArrays)
11+
Aqua.test_undefined_exports(LabelledArrays)
12+
end

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ using InteractiveUtils
55
using ChainRulesTestUtils
66

77
@time begin
8+
@time @testset "Quality Assurance" begin include("qa.jl") end
89
@time @testset "SLArrays" begin include("slarrays.jl") end
910
@time @testset "LArrays" begin include("larrays.jl") end
1011
@time @testset "DiffEq" begin include("diffeq.jl") end

0 commit comments

Comments
 (0)