Skip to content

Commit

Permalink
add Aqua and JET, and correct throwiness
Browse files Browse the repository at this point in the history
  • Loading branch information
sjkelly committed Jul 3, 2022
1 parent 760757e commit 515a400
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Project.toml
Expand Up @@ -6,11 +6,13 @@ version = "0.6.0"
julia = "0.7, 1"

[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
OffsetArrays = "6fe1bfb0-de20-5000-8ca7-80f57d26f881"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["LinearAlgebra", "StatsBase", "Test", "OffsetArrays", "StaticArrays"]
test = ["Aqua", "JET", "LinearAlgebra", "StatsBase", "Test", "OffsetArrays", "StaticArrays"]
2 changes: 1 addition & 1 deletion src/Contour.jl
Expand Up @@ -81,7 +81,7 @@ end
You'll usually call [`levels`](@ref) on the output of `contours`.
"""
contours(::Any...) = error("This method exists only for documentation purposes")
function contours end

"""
`contours(x,y,z,levels)` Trace the contour levels indicated by the `levels`
Expand Down
11 changes: 11 additions & 0 deletions test/runtests.jl
Expand Up @@ -8,3 +8,14 @@ include("interface.jl")

#issue 59
@inferred collect(())

using Aqua
# Aqua tests
# Intervals brings a bunch of ambiquities unfortunately
Aqua.test_all(Contour)


@info "Running JET..."

using JET
display(JET.report_package(Contour))

0 comments on commit 515a400

Please sign in to comment.