Skip to content

Commit bf7145d

Browse files
authored
Move code quality dependencies to separate environment (#380)
2 parents 9ca0815 + b63c19b commit bf7145d

File tree

5 files changed

+24
-12
lines changed

5 files changed

+24
-12
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased](https://github.com/qutip/QuantumToolbox.jl/tree/main)
99

10+
- Move code quality dependencies to separate environment. ([#380])
11+
1012
## [v0.25.1]
1113
Release date: 2025-01-29
1214

@@ -67,6 +69,7 @@ Release date: 2024-11-13
6769
[v0.23.1]: https://github.com/qutip/QuantumToolbox.jl/releases/tag/v0.23.1
6870
[v0.24.0]: https://github.com/qutip/QuantumToolbox.jl/releases/tag/v0.24.0
6971
[v0.25.0]: https://github.com/qutip/QuantumToolbox.jl/releases/tag/v0.25.0
72+
[v0.25.1]: https://github.com/qutip/QuantumToolbox.jl/releases/tag/v0.25.1
7073
[#86]: https://github.com/qutip/QuantumToolbox.jl/issues/86
7174
[#139]: https://github.com/qutip/QuantumToolbox.jl/issues/139
7275
[#271]: https://github.com/qutip/QuantumToolbox.jl/issues/271
@@ -94,3 +97,4 @@ Release date: 2024-11-13
9497
[#375]: https://github.com/qutip/QuantumToolbox.jl/issues/375
9598
[#376]: https://github.com/qutip/QuantumToolbox.jl/issues/376
9699
[#378]: https://github.com/qutip/QuantumToolbox.jl/issues/378
100+
[#380]: https://github.com/qutip/QuantumToolbox.jl/issues/380

Project.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ QuantumToolboxCairoMakieExt = "CairoMakie"
3838
QuantumToolboxGPUArraysExt = ["GPUArrays", "KernelAbstractions"]
3939

4040
[compat]
41-
Aqua = "0.8"
4241
ArrayInterface = "6, 7"
4342
CUDA = "5"
4443
CairoMakie = "0.12, 0.13"
@@ -50,7 +49,6 @@ FFTW = "1.5"
5049
GPUArrays = "10, 11"
5150
Graphs = "1.7"
5251
IncompleteLU = "0.2"
53-
JET = "0.9"
5452
KernelAbstractions = "0.9.2"
5553
LinearAlgebra = "1"
5654
LinearSolve = "2"
@@ -69,9 +67,7 @@ Test = "1"
6967
julia = "1.10"
7068

7169
[extras]
72-
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
73-
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
7470
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
7571

7672
[targets]
77-
test = ["Aqua", "JET", "Test"]
73+
test = ["Test"]
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[deps]
2+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
3+
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
4+
QuantumToolbox = "6c2fb7c5-b903-41d2-bc5e-5a7c320b9fab"
5+
6+
[compat]
7+
Aqua = "0.8"
8+
JET = "0.9"
File renamed without changes.

test/runtests.jl

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,6 @@ core_tests = [
2626
"wigner.jl",
2727
]
2828

29-
if (GROUP == "All") || (GROUP == "Code-Quality")
30-
using QuantumToolbox
31-
using Aqua, JET
32-
33-
include(joinpath(testdir, "core-test", "code_quality.jl"))
34-
end
35-
3629
if (GROUP == "All") || (GROUP == "Core")
3730
using QuantumToolbox
3831
import QuantumToolbox: position, momentum
@@ -46,6 +39,17 @@ if (GROUP == "All") || (GROUP == "Core")
4639
end
4740
end
4841

42+
if (GROUP == "All") || (GROUP == "Code-Quality")
43+
Pkg.activate("core-test/code-quality")
44+
Pkg.develop(PackageSpec(path = dirname(@__DIR__)))
45+
Pkg.instantiate()
46+
47+
using QuantumToolbox
48+
using Aqua, JET
49+
50+
include(joinpath(testdir, "core-test", "code-quality", "code_quality.jl"))
51+
end
52+
4953
if (GROUP == "CairoMakie_Ext")# || (GROUP == "All")
5054
Pkg.activate("ext-test/cairomakie")
5155
Pkg.develop(PackageSpec(path = dirname(@__DIR__)))

0 commit comments

Comments
 (0)