Skip to content

Commit 7b44b04

Browse files
authored
Use Aqua to ensure project quality (#812)
1 parent 972ec5a commit 7b44b04

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

Project.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ ApproxFunBase = "0.6"
2424
ApproxFunFourier = "0.3"
2525
ApproxFunOrthogonalPolynomials = "0.5"
2626
ApproxFunSingularities = "0.3"
27+
Aqua = "0.5"
2728
Calculus = "0.5"
2829
DomainSets = "0.3, 0.4, 0.5"
2930
DualNumbers = "0.6.2"
@@ -35,9 +36,10 @@ SpecialFunctions = "1.1, 2"
3536
julia = "1.6"
3637

3738
[extras]
39+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
3840
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3941
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
4042
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
4143

4244
[targets]
43-
test = ["Documenter", "Test", "Random"]
45+
test = ["Aqua", "Documenter", "Test", "Random"]

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
[![codecov](https://codecov.io/gh/JuliaApproximation/ApproxFun.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaApproximation/ApproxFun.jl)
88
[![deps](https://juliahub.com/docs/ApproxFun/deps.svg)](https://juliahub.com/ui/Packages/ApproxFun/jGqLz?t=2)
99
[![version](https://juliahub.com/docs/ApproxFun/version.svg)](https://juliahub.com/ui/Packages/ApproxFun/jGqLz)
10+
[![Aqua QA](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl)
1011
[![Join the chat at https://gitter.im/JuliaApproximation/ApproxFun.jl](https://badges.gitter.im/JuliaApproximation/ApproxFun.jl.svg)](https://gitter.im/JuliaApproximation/ApproxFun.jl?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
1112

1213

src/Extras/dualnumbers.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ plan_ichebyshevtransform(v::AbstractVector{D}, ::Val{kind}) where {D<:Dual,kind}
3636

3737

3838

39-
*(P::ChebyshevTransformPlan,v::AbstractVector{D}) where {k,D<:Dual} = dual.(P*realpart.(v),P*dualpart.(v))
39+
*(P::ChebyshevTransformPlan,v::AbstractVector{<:Dual}) = dual.(P*realpart.(v),P*dualpart.(v))
4040

4141
#TODO: Hardy{false}
4242
for (OP,TransPlan) in ((:plan_transform,:TransformPlan),(:plan_itransform,:ITransformPlan)),

test/runtests.jl

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
using ApproxFun, Random, Test
22
import ApproxFunBase: testbandedblockbandedoperator, blocklengths, ∞
33

4+
using Aqua
5+
@testset "Project quality" begin
6+
Aqua.test_all(ApproxFun, ambiguities=false, undefined_exports=false)
7+
end
8+
49
using Documenter
510
DocMeta.setdocmeta!(ApproxFun, :DocTestSetup, :(using ApproxFun); recursive=true)
611

712
@testset "doctests" begin
813
doctest(ApproxFun, manual = false)
914
end
1015

11-
@time include("ReadmeTest.jl")
12-
@time include("ExtrasTest.jl")
13-
@time include("NumberTypeTest.jl")
14-
@time include("FractionalTest.jl")
16+
include("ReadmeTest.jl")
17+
include("ExtrasTest.jl")
18+
include("NumberTypeTest.jl")
19+
include("FractionalTest.jl")
1520

1621
@testset "Chebyshev and Fourier" begin
1722
@test norm(Fun(x->Fun(cos,Fourier(-π .. π),20)(x),20)-Fun(cos,20)) <100eps()

0 commit comments

Comments
 (0)