Skip to content

Commit

Permalink
Merge pull request #213 from ArnoStrouwen/aqua
Browse files Browse the repository at this point in the history
Aqua CI
  • Loading branch information
ChrisRackauckas authored Dec 12, 2023
2 parents d736677 + df78af9 commit c84eecc
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 27 deletions.
1 change: 0 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
fail-fast: false
matrix:
version:
- '1.6' # Minimum Julia version required
- '1'
# - 'nightly'
os:
Expand Down
11 changes: 7 additions & 4 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
PrettyTables = "08abe8d2-0d0c-5749-adfa-8a2ac140af0d"
RecipesBase = "3cdcf5f2-1ef4-517c-9805-6587b60abb01"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
Requires = "ae029012-a4dd-5104-9daa-d747884805df"

[weakdeps]
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
Expand All @@ -23,7 +22,9 @@ DataInterpolationsRegularizationToolsExt = "RegularizationTools"
DataInterpolationsSymbolicsExt = "Symbolics"

[compat]
Aqua = "0.8"
ChainRulesCore = "0.9.44, 0.10, 1"
FiniteDifferences = "0.12"
ForwardDiff = "0.10"
LinearAlgebra = "1.6"
Optim = "0.19, 0.20, 0.21, 0.22, 1.0"
Expand All @@ -32,11 +33,13 @@ QuadGK = "2.9.1"
RecipesBase = "0.8, 1.0"
Reexport = "0.2, 1.0"
RegularizationTools = "0.6"
Requires = "1"
StableRNGs = "1"
Symbolics = "4, 5.1"
julia = "1.6"
Test = "1"
julia = "1.9"

[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
FiniteDifferences = "26cc04aa-876d-5657-8c51-4c34ba976000"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
Expand All @@ -48,4 +51,4 @@ Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["ChainRulesCore", "Optim", "RegularizationTools", "Test", "StableRNGs", "FiniteDifferences", "QuadGK", "ForwardDiff", "Symbolics"]
test = ["Aqua", "ChainRulesCore", "Optim", "RegularizationTools", "Test", "StableRNGs", "FiniteDifferences", "QuadGK", "ForwardDiff", "Symbolics"]
22 changes: 0 additions & 22 deletions src/DataInterpolations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -139,28 +139,6 @@ end

export Curvefit

@static if !isdefined(Base, :get_extension)
using Requires
end

@static if !isdefined(Base, :get_extension)
function __init__()
Requires.@require ChainRulesCore="d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4" begin
include("../ext/DataInterpolationsChainRulesCoreExt.jl")
end
Requires.@require Optim="429524aa-4258-5aef-a3af-852621145aeb" begin
Requires.@require ForwardDiff="f6369f11-7733-5829-9624-2563aa707210" begin
include("../ext/DataInterpolationsOptimExt.jl")
end
end
Requires.@require RegularizationTools="29dad682-9a27-4bc3-9c72-016788665182" begin
include("../ext/DataInterpolationsRegularizationToolsExt.jl")
end
Requires.@require Symbolics="0c5d862f-8b57-4792-8d23-62f2024744c7" begin
include("../ext/DataInterpolationsSymbolicsExt.jl")
end
end
end

# Deprecated April 2020
export ZeroSpline
Expand Down
11 changes: 11 additions & 0 deletions test/qa.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using DataInterpolations, Aqua
@testset "Aqua" begin
Aqua.find_persistent_tasks_deps(DataInterpolations)
Aqua.test_ambiguities(DataInterpolations, recursive = false)
Aqua.test_deps_compat(DataInterpolations)
Aqua.test_piracies(DataInterpolations)
Aqua.test_project_extras(DataInterpolations)
Aqua.test_stale_deps(DataInterpolations)
Aqua.test_unbound_args(DataInterpolations)
Aqua.test_undefined_exports(DataInterpolations)
end
3 changes: 3 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
using DataInterpolations, Test

@testset "DataInterpolations" begin
@testset "Quality Assurance" begin
include("qa.jl")
end
@testset "Interface" begin
include("interface.jl")
end
Expand Down

0 comments on commit c84eecc

Please sign in to comment.