Skip to content

Commit

Permalink
Aqua
Browse files Browse the repository at this point in the history
  • Loading branch information
carstenbauer committed Mar 21, 2024
1 parent 761063f commit 0e7dc8d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "OhMyThreads"
uuid = "67456a42-1dca-4109-a031-0a68de7e3ad5"
authors = ["Carsten Bauer <[email protected]>", "Mason Protter <[email protected]>"]
version = "0.5"
version = "0.5.0"

[deps]
BangBang = "198e06fe-97b7-11e9-32a5-e1d131e6ad66"
Expand All @@ -10,14 +10,17 @@ StableTasks = "91464d47-22a1-43fe-8b7f-2d57ee82463f"
TaskLocalValues = "ed4db957-447d-4319-bfb6-7fa9ae7ecf34"

[compat]
Aqua = "0.8"
BangBang = "0.4"
ChunkSplitters = "2.4"
StableTasks = "0.1.5"
TaskLocalValues = "0.1"
Test = "1"
julia = "1.6"

[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test"]
test = ["Test", "Aqua"]
11 changes: 11 additions & 0 deletions test/Aqua.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using Aqua

@testset "Aqua.jl" begin
Aqua.test_all(
OhMyThreads;
# ambiguities=(exclude=[SomePackage.some_function], broken=true),
# stale_deps=(ignore=[:SomePackage],),
deps_compat=(ignore=[:Test],),
# piracies=false,
)
end
2 changes: 2 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using Test, OhMyThreads
using OhMyThreads: TaskLocalValue, WithTaskLocals, @fetch, promise_task_local

include("Aqua.jl")

sets_to_test = [(~ = isapprox, f = sin *, op = +,
itrs = (rand(ComplexF64, 10, 10), rand(-10:10, 10, 10)),
init = complex(0.0))
Expand Down

0 comments on commit 0e7dc8d

Please sign in to comment.