diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 0000000..79b68a4 --- /dev/null +++ b/.typos.toml @@ -0,0 +1 @@ +[default.extend-words] \ No newline at end of file diff --git a/Project.toml b/Project.toml index f64e36e..958563b 100644 --- a/Project.toml +++ b/Project.toml @@ -14,20 +14,27 @@ RecursiveArrayTools = "731186ca-8d62-57ce-b412-fbd966d074cd" StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" [compat] +Aqua = "0.8" ArrayInterface = "7" ChainRulesCore = "1" +ChainRulesTestUtils = "1" ForwardDiff = "0.10.3" +InteractiveUtils = "1" +LinearAlgebra = "1" MacroTools = "0.5" +OrdinaryDiffEq = "6" PreallocationTools = "0.4" RecursiveArrayTools = "2,3" StaticArrays = "1.0" +Test = "1" julia = "1.6" [extras] +Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" ChainRulesTestUtils = "cdddcdb0-9152-4a09-a978-84456f9df70a" InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240" OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["Test", "OrdinaryDiffEq", "InteractiveUtils", "ChainRulesTestUtils"] +test = ["Aqua", "Test", "OrdinaryDiffEq", "InteractiveUtils", "ChainRulesTestUtils"] diff --git a/README.md b/README.md index 13b3cc7..d0c5c95 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ julia> SLArray{Tuple{2, 2}}(a = 1, b = 2, c = 3, d = 4) Constructing copies with some items changed is supported by a keyword constructor whose first argument is the source and -additonal keyword arguments change several entries. +additional keyword arguments change several entries. ```julia julia> v1 = SLVector(a = 1.1, b = 2.2, c = 3.3); diff --git a/src/LabelledArrays.jl b/src/LabelledArrays.jl index 7ab6123..7816c8d 100644 --- a/src/LabelledArrays.jl +++ b/src/LabelledArrays.jl @@ -84,8 +84,6 @@ end export SLArray, LArray, SLVector, LVector, @SLVector, @LArray, @LVector, @SLArray -export @SLSliced, @LSliced - -export symbols, dimSymbols, rowSymbols, colSymbols +export symbols end # module diff --git a/src/larray.jl b/src/larray.jl index 3416618..5142621 100644 --- a/src/larray.jl +++ b/src/larray.jl @@ -286,7 +286,7 @@ macro LVector(type, syms) end end -#the following gives errror: TypeError: in <:, expected Type, got TypeVar +#the following gives error: TypeError: in <:, expected Type, got TypeVar #symbols(::LArray{T,N,D<:AbstractArray{T,N},Syms}) where {T,N,D,Syms} = Syms """ diff --git a/test/qa.jl b/test/qa.jl new file mode 100644 index 0000000..ac0e278 --- /dev/null +++ b/test/qa.jl @@ -0,0 +1,12 @@ +using LabelledArrays, Aqua +@testset "Aqua" begin + Aqua.find_persistent_tasks_deps(LabelledArrays) + Aqua.test_ambiguities(LabelledArrays, recursive = false, broken = true) + Aqua.test_deps_compat(LabelledArrays) + Aqua.test_piracies(LabelledArrays, + treat_as_own = []) + Aqua.test_project_extras(LabelledArrays) + Aqua.test_stale_deps(LabelledArrays) + Aqua.test_unbound_args(LabelledArrays) + Aqua.test_undefined_exports(LabelledArrays) +end diff --git a/test/runtests.jl b/test/runtests.jl index 787f35e..a4f5842 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -5,6 +5,7 @@ using InteractiveUtils using ChainRulesTestUtils @time begin + @time @testset "Quality Assurance" begin include("qa.jl") end @time @testset "SLArrays" begin include("slarrays.jl") end @time @testset "LArrays" begin include("larrays.jl") end @time @testset "DiffEq" begin include("diffeq.jl") end