From df78af9da736c0ad25c3f76476e3823ab8621cba Mon Sep 17 00:00:00 2001 From: Arno Strouwen Date: Tue, 12 Dec 2023 04:55:54 +0100 Subject: [PATCH] Aqua CI --- .github/workflows/CI.yml | 1 - Project.toml | 11 +++++++---- src/DataInterpolations.jl | 22 ---------------------- test/qa.jl | 11 +++++++++++ test/runtests.jl | 3 +++ 5 files changed, 21 insertions(+), 27 deletions(-) create mode 100644 test/qa.jl diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index e0988972..ee5c90f0 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -18,7 +18,6 @@ jobs: fail-fast: false matrix: version: - - '1.6' # Minimum Julia version required - '1' # - 'nightly' os: diff --git a/Project.toml b/Project.toml index 44bd1159..f8d759f3 100644 --- a/Project.toml +++ b/Project.toml @@ -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" @@ -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" @@ -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" @@ -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"] diff --git a/src/DataInterpolations.jl b/src/DataInterpolations.jl index 05ad5068..9f23e29e 100644 --- a/src/DataInterpolations.jl +++ b/src/DataInterpolations.jl @@ -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 diff --git a/test/qa.jl b/test/qa.jl new file mode 100644 index 00000000..19c936b5 --- /dev/null +++ b/test/qa.jl @@ -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 diff --git a/test/runtests.jl b/test/runtests.jl index 39447ed6..c46409f8 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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