Skip to content

Commit

Permalink
Use Aqua in tests (#131)
Browse files Browse the repository at this point in the history
* Use Aqua in tests

* Disable ambiguities test on old Julia versions
  • Loading branch information
jishnub authored Jun 4, 2024
1 parent 0a6cc5c commit af50ee1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,18 @@ AbstractFFTsChainRulesCoreExt = "ChainRulesCore"
AbstractFFTsTestExt = "Test"

[compat]
Aqua = "0.8"
ChainRulesCore = "1"
ChainRulesTestUtils = "1"
FiniteDifferences = "0.12"
LinearAlgebra = "<0.0.1, 1"
Random = "<0.0.1, 1"
Test = "<0.0.1, 1"
Unitful = "1"
julia = "^1.0"

[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
ChainRulesTestUtils = "cdddcdb0-9152-4a09-a978-84456f9df70a"
FiniteDifferences = "26cc04aa-876d-5657-8c51-4c34ba976000"
Expand All @@ -28,4 +36,4 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"

[targets]
test = ["ChainRulesCore", "ChainRulesTestUtils", "FiniteDifferences", "Random", "Test", "Unitful"]
test = ["Aqua", "ChainRulesCore", "ChainRulesTestUtils", "FiniteDifferences", "Random", "Test", "Unitful"]
5 changes: 5 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ using LinearAlgebra
using ChainRulesCore
using FiniteDifferences

import Aqua
@testset "Project quality" begin
Aqua.test_all(AbstractFFTs, ambiguities = VERSION >= v"1.10")
end

Random.seed!(1234)

# Load example plan implementation.
Expand Down

0 comments on commit af50ee1

Please sign in to comment.