Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "UnspecifiedTypes"
uuid = "42b3faec-625b-4613-8ddc-352bf9672b8d"
version = "0.1.8"
authors = ["ITensor developers <support@itensor.org> and contributors"]
version = "0.1.7"

[compat]
julia = "1.10"
2 changes: 1 addition & 1 deletion benchmark/benchmarks.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using UnspecifiedTypes
using BenchmarkTools
using UnspecifiedTypes

SUITE = BenchmarkGroup()
SUITE["rand"] = @benchmarkable rand(10)
Expand Down
6 changes: 3 additions & 3 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using UnspecifiedTypes: UnspecifiedTypes
using Documenter: Documenter, DocMeta, deploydocs, makedocs
using UnspecifiedTypes: UnspecifiedTypes

DocMeta.setdocmeta!(
UnspecifiedTypes, :DocTestSetup, :(using UnspecifiedTypes); recursive = true
Expand All @@ -14,9 +14,9 @@ makedocs(;
format = Documenter.HTML(;
canonical = "https://itensor.github.io/UnspecifiedTypes.jl",
edit_link = "main",
assets = ["assets/favicon.ico", "assets/extras.css"],
assets = ["assets/favicon.ico", "assets/extras.css"]
),
pages = ["Home" => "index.md", "Reference" => "reference.md"],
pages = ["Home" => "index.md", "Reference" => "reference.md"]
)

deploydocs(;
Expand Down
2 changes: 1 addition & 1 deletion docs/make_index.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ Literate.markdown(
joinpath(pkgdir(UnspecifiedTypes), "docs", "src");
flavor = Literate.DocumenterFlavor(),
name = "index",
postprocess = ccq_logo,
postprocess = ccq_logo
)
2 changes: 1 addition & 1 deletion docs/make_readme.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ Literate.markdown(
joinpath(pkgdir(UnspecifiedTypes));
flavor = Literate.CommonMarkFlavor(),
name = "README",
postprocess = ccq_logo,
postprocess = ccq_logo
)
18 changes: 12 additions & 6 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,19 @@ const GROUP = uppercase(
get(ENV, "GROUP", "ALL")
else
only(match(pat, ARGS[arg_id]).captures)
end,
end
)

"match files of the form `test_*.jl`, but exclude `*setup*.jl`"
"""
match files of the form `test_*.jl`, but exclude `*setup*.jl`
"""
function istestfile(fn)
return endswith(fn, ".jl") && startswith(basename(fn), "test_") && !contains(fn, "setup")
return endswith(fn, ".jl") && startswith(basename(fn), "test_") &&
!contains(fn, "setup")
end
"match files of the form `*.jl`, but exclude `*_notest.jl` and `*setup*.jl`"
"""
match files of the form `*.jl`, but exclude `*_notest.jl` and `*setup*.jl`
"""
function isexamplefile(fn)
return endswith(fn, ".jl") && !endswith(fn, "_notest.jl") && !contains(fn, "setup")
end
Expand All @@ -26,7 +31,8 @@ end
# tests in groups based on folder structure
for testgroup in filter(isdir, readdir(@__DIR__))
if GROUP == "ALL" || GROUP == uppercase(testgroup)
for file in filter(istestfile, readdir(joinpath(@__DIR__, testgroup); join = true))
for file in
filter(istestfile, readdir(joinpath(@__DIR__, testgroup); join = true))
@eval @safetestset $file begin
include($file)
end
Expand Down Expand Up @@ -55,7 +61,7 @@ end
:macrocall,
GlobalRef(Suppressor, Symbol("@suppress")),
LineNumberNode(@__LINE__, @__FILE__),
:(include($filename)),
:(include($filename))
)
)
end
Expand Down
2 changes: 1 addition & 1 deletion test/test_aqua.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using UnspecifiedTypes: UnspecifiedTypes
using Aqua: Aqua
using Test: @testset
using UnspecifiedTypes: UnspecifiedTypes

@testset "Code quality (Aqua.jl)" begin
Aqua.test_all(UnspecifiedTypes)
Expand Down
2 changes: 1 addition & 1 deletion test/test_basics.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Test: @test, @testset
using UnspecifiedTypes: UnspecifiedZero
using Test: @testset, @test

@testset "UnspecifiedTypes (eltype=$elt)" for elt in (
Float32, Float64, Complex{Float32}, Complex{Float64},
Expand Down
Loading