diff --git a/Project.toml b/Project.toml index b7622cf7..3b218281 100644 --- a/Project.toml +++ b/Project.toml @@ -19,19 +19,26 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b" [compat] -DiffEqCallbacks = "2.24, <3.2.0, >=3.5.0" +Aqua = "0.6, 0.7, 0.8" +DiffEqCallbacks = "2.24, 3" +Distributed = "<0.0.1, 1" FFTW = "1.5" Graphs = "1.7.4" IncompleteLU = "0.2" +LinearAlgebra = "<0.0.1, 1" LinearMaps = "3" LinearSolve = "2" OrdinaryDiffEq = "6.30" +Random = "<0.0.1, 1" Reexport = "1" +SparseArrays = "<0.0.1, 1" SpecialFunctions = "2.2" +Test = "<0.0.1, 1" julia = "1.7" [extras] Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" +Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" [targets] -test = ["Test"] +test = ["Test", "Aqua"] diff --git a/src/QuantumToolbox.jl b/src/QuantumToolbox.jl index 23104908..fde257f3 100644 --- a/src/QuantumToolbox.jl +++ b/src/QuantumToolbox.jl @@ -48,7 +48,7 @@ export tensor, ⊗ export sinm, cosm export expect export WignerClenshaw, WignerLaguerre, wigner -export row_major_reshape, tidyup, tidyup!, gaussian, trunc_op, meshgrid, sparse_to_dense, dense_to_sparse +export row_major_reshape, tidyup, tidyup!, gaussian, meshgrid, sparse_to_dense, dense_to_sparse export get_data, mat2vec, vec2mat export ptrace, entropy_vn, entanglement export negativity, partial_transpose diff --git a/src/time_evolution/lr_mesolve.jl b/src/time_evolution/lr_mesolve.jl index d1d0dc30..71801813 100644 --- a/src/time_evolution/lr_mesolve.jl +++ b/src/time_evolution/lr_mesolve.jl @@ -1,4 +1,4 @@ -export lr_mesolve, lr_mesolveProblem, lr_mesolveOptions, LRTimeEvolutionSol, LRMesolveOptions +export lr_mesolve, lr_mesolveProblem, LRTimeEvolutionSol, LRMesolveOptions #=======================================================# # STRUCT DEFINITIONS diff --git a/test/aqua.jl b/test/aqua.jl new file mode 100644 index 00000000..b158c897 --- /dev/null +++ b/test/aqua.jl @@ -0,0 +1,3 @@ +@testset "Code quality (Aqua.jl)" begin + Aqua.test_all(QuantumToolbox; ambiguities = false,) +end \ No newline at end of file diff --git a/test/runtests.jl b/test/runtests.jl index 5841ad97..500db40d 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,5 +1,6 @@ using Test using QuantumToolbox +using Aqua const GROUP = get(ENV, "GROUP", "All") @@ -7,6 +8,7 @@ const testdir = dirname(@__FILE__) # Put core tests in alphabetical order core_tests = [ + "aqua.jl", "correlations_and_spectrum.jl", "dynamical_fock_dimension_mesolve.jl", "dynamical-shifted-fock.jl",