diff --git a/Project.toml b/Project.toml index d80ce89..043f496 100644 --- a/Project.toml +++ b/Project.toml @@ -9,13 +9,18 @@ SHA = "ea8e919c-243c-51af-8825-aaa63cd721ce" Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b" [compat] +Aqua = "0.8" +BenchmarkTools = "1" ExprTools = "0.1" SHA = "0.7" +Serialization = "1" +Test = "1" julia = "1.9" [extras] +Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["BenchmarkTools", "Test"] +test = ["Aqua", "BenchmarkTools", "Test"] diff --git a/test/qa.jl b/test/qa.jl new file mode 100644 index 0000000..c5a252a --- /dev/null +++ b/test/qa.jl @@ -0,0 +1,11 @@ +using RuntimeGeneratedFunctions, Aqua +@testset "Aqua" begin + Aqua.find_persistent_tasks_deps(RuntimeGeneratedFunctions) + Aqua.test_ambiguities(RuntimeGeneratedFunctions, recursive = false) + Aqua.test_deps_compat(RuntimeGeneratedFunctions) + Aqua.test_piracies(RuntimeGeneratedFunctions) + Aqua.test_project_extras(RuntimeGeneratedFunctions) + Aqua.test_stale_deps(RuntimeGeneratedFunctions) + Aqua.test_unbound_args(RuntimeGeneratedFunctions) + Aqua.test_undefined_exports(RuntimeGeneratedFunctions) +end diff --git a/test/runtests.jl b/test/runtests.jl index 6319f4d..aaf0842 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -2,6 +2,8 @@ using RuntimeGeneratedFunctions, BenchmarkTools using Serialization using Test +include("qa.jl") + RuntimeGeneratedFunctions.init(@__MODULE__) function f(_du, _u, _p, _t)