Skip to content

Commit

Permalink
Move code quality dependencies to separate environment (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
ytdHuang authored Jan 30, 2025
2 parents 9ca0815 + b63c19b commit bf7145d
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
6 changes: 1 addition & 5 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ QuantumToolboxCairoMakieExt = "CairoMakie"
QuantumToolboxGPUArraysExt = ["GPUArrays", "KernelAbstractions"]

[compat]
Aqua = "0.8"
ArrayInterface = "6, 7"
CUDA = "5"
CairoMakie = "0.12, 0.13"
Expand All @@ -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"
Expand All @@ -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"]
8 changes: 8 additions & 0 deletions test/core-test/code-quality/Project.toml
Original file line number Diff line number Diff line change
@@ -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"
File renamed without changes.
18 changes: 11 additions & 7 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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__)))
Expand Down

0 comments on commit bf7145d

Please sign in to comment.