diff --git a/CHANGELOG.md b/CHANGELOG.md index 79e04cc96..a885d0460 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased](https://github.com/qutip/QuantumToolbox.jl/tree/main) +- Move code quality dependencies to separate environment. ([#380]) + ## [v0.25.1] Release date: 2025-01-29 @@ -67,6 +69,7 @@ Release date: 2024-11-13 [v0.23.1]: https://github.com/qutip/QuantumToolbox.jl/releases/tag/v0.23.1 [v0.24.0]: https://github.com/qutip/QuantumToolbox.jl/releases/tag/v0.24.0 [v0.25.0]: https://github.com/qutip/QuantumToolbox.jl/releases/tag/v0.25.0 +[v0.25.1]: https://github.com/qutip/QuantumToolbox.jl/releases/tag/v0.25.1 [#86]: https://github.com/qutip/QuantumToolbox.jl/issues/86 [#139]: https://github.com/qutip/QuantumToolbox.jl/issues/139 [#271]: https://github.com/qutip/QuantumToolbox.jl/issues/271 @@ -94,3 +97,4 @@ Release date: 2024-11-13 [#375]: https://github.com/qutip/QuantumToolbox.jl/issues/375 [#376]: https://github.com/qutip/QuantumToolbox.jl/issues/376 [#378]: https://github.com/qutip/QuantumToolbox.jl/issues/378 +[#380]: https://github.com/qutip/QuantumToolbox.jl/issues/380 diff --git a/Project.toml b/Project.toml index 4604138c7..ddf221a87 100644 --- a/Project.toml +++ b/Project.toml @@ -38,7 +38,6 @@ QuantumToolboxCairoMakieExt = "CairoMakie" QuantumToolboxGPUArraysExt = ["GPUArrays", "KernelAbstractions"] [compat] -Aqua = "0.8" ArrayInterface = "6, 7" CUDA = "5" CairoMakie = "0.12, 0.13" @@ -50,7 +49,6 @@ FFTW = "1.5" GPUArrays = "10, 11" Graphs = "1.7" IncompleteLU = "0.2" -JET = "0.9" KernelAbstractions = "0.9.2" LinearAlgebra = "1" LinearSolve = "2" @@ -69,9 +67,7 @@ Test = "1" julia = "1.10" [extras] -Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" -JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["Aqua", "JET", "Test"] +test = ["Test"] diff --git a/test/core-test/code-quality/Project.toml b/test/core-test/code-quality/Project.toml new file mode 100644 index 000000000..b1ac4d754 --- /dev/null +++ b/test/core-test/code-quality/Project.toml @@ -0,0 +1,8 @@ +[deps] +Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" +JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b" +QuantumToolbox = "6c2fb7c5-b903-41d2-bc5e-5a7c320b9fab" + +[compat] +Aqua = "0.8" +JET = "0.9" diff --git a/test/core-test/code_quality.jl b/test/core-test/code-quality/code_quality.jl similarity index 100% rename from test/core-test/code_quality.jl rename to test/core-test/code-quality/code_quality.jl diff --git a/test/runtests.jl b/test/runtests.jl index ca5c41670..97d4b9736 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -26,13 +26,6 @@ core_tests = [ "wigner.jl", ] -if (GROUP == "All") || (GROUP == "Code-Quality") - using QuantumToolbox - using Aqua, JET - - include(joinpath(testdir, "core-test", "code_quality.jl")) -end - if (GROUP == "All") || (GROUP == "Core") using QuantumToolbox import QuantumToolbox: position, momentum @@ -46,6 +39,17 @@ if (GROUP == "All") || (GROUP == "Core") end end +if (GROUP == "All") || (GROUP == "Code-Quality") + Pkg.activate("core-test/code-quality") + Pkg.develop(PackageSpec(path = dirname(@__DIR__))) + Pkg.instantiate() + + using QuantumToolbox + using Aqua, JET + + include(joinpath(testdir, "core-test", "code-quality", "code_quality.jl")) +end + if (GROUP == "CairoMakie_Ext")# || (GROUP == "All") Pkg.activate("ext-test/cairomakie") Pkg.develop(PackageSpec(path = dirname(@__DIR__)))