Skip to content

Commit eb5aee3

Browse files
Automatic ITensorFormatter run (#23)
Co-authored-by: mtfishman <7855256+mtfishman@users.noreply.github.com>
1 parent 1d6add8 commit eb5aee3

8 files changed

Lines changed: 21 additions & 15 deletions

File tree

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "UnspecifiedTypes"
22
uuid = "42b3faec-625b-4613-8ddc-352bf9672b8d"
3+
version = "0.1.8"
34
authors = ["ITensor developers <support@itensor.org> and contributors"]
4-
version = "0.1.7"
55

66
[compat]
77
julia = "1.10"

benchmark/benchmarks.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
using UnspecifiedTypes
21
using BenchmarkTools
2+
using UnspecifiedTypes
33

44
SUITE = BenchmarkGroup()
55
SUITE["rand"] = @benchmarkable rand(10)

docs/make.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
using UnspecifiedTypes: UnspecifiedTypes
21
using Documenter: Documenter, DocMeta, deploydocs, makedocs
2+
using UnspecifiedTypes: UnspecifiedTypes
33

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

2222
deploydocs(;

docs/make_index.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ Literate.markdown(
1717
joinpath(pkgdir(UnspecifiedTypes), "docs", "src");
1818
flavor = Literate.DocumenterFlavor(),
1919
name = "index",
20-
postprocess = ccq_logo,
20+
postprocess = ccq_logo
2121
)

docs/make_readme.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ Literate.markdown(
1717
joinpath(pkgdir(UnspecifiedTypes));
1818
flavor = Literate.CommonMarkFlavor(),
1919
name = "README",
20-
postprocess = ccq_logo,
20+
postprocess = ccq_logo
2121
)

test/runtests.jl

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,19 @@ const GROUP = uppercase(
1010
get(ENV, "GROUP", "ALL")
1111
else
1212
only(match(pat, ARGS[arg_id]).captures)
13-
end,
13+
end
1414
)
1515

16-
"match files of the form `test_*.jl`, but exclude `*setup*.jl`"
16+
"""
17+
match files of the form `test_*.jl`, but exclude `*setup*.jl`
18+
"""
1719
function istestfile(fn)
18-
return endswith(fn, ".jl") && startswith(basename(fn), "test_") && !contains(fn, "setup")
20+
return endswith(fn, ".jl") && startswith(basename(fn), "test_") &&
21+
!contains(fn, "setup")
1922
end
20-
"match files of the form `*.jl`, but exclude `*_notest.jl` and `*setup*.jl`"
23+
"""
24+
match files of the form `*.jl`, but exclude `*_notest.jl` and `*setup*.jl`
25+
"""
2126
function isexamplefile(fn)
2227
return endswith(fn, ".jl") && !endswith(fn, "_notest.jl") && !contains(fn, "setup")
2328
end
@@ -26,7 +31,8 @@ end
2631
# tests in groups based on folder structure
2732
for testgroup in filter(isdir, readdir(@__DIR__))
2833
if GROUP == "ALL" || GROUP == uppercase(testgroup)
29-
for file in filter(istestfile, readdir(joinpath(@__DIR__, testgroup); join = true))
34+
for file in
35+
filter(istestfile, readdir(joinpath(@__DIR__, testgroup); join = true))
3036
@eval @safetestset $file begin
3137
include($file)
3238
end
@@ -55,7 +61,7 @@ end
5561
:macrocall,
5662
GlobalRef(Suppressor, Symbol("@suppress")),
5763
LineNumberNode(@__LINE__, @__FILE__),
58-
:(include($filename)),
64+
:(include($filename))
5965
)
6066
)
6167
end

test/test_aqua.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
using UnspecifiedTypes: UnspecifiedTypes
21
using Aqua: Aqua
32
using Test: @testset
3+
using UnspecifiedTypes: UnspecifiedTypes
44

55
@testset "Code quality (Aqua.jl)" begin
66
Aqua.test_all(UnspecifiedTypes)

test/test_basics.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
using Test: @test, @testset
12
using UnspecifiedTypes: UnspecifiedZero
2-
using Test: @testset, @test
33

44
@testset "UnspecifiedTypes (eltype=$elt)" for elt in (
55
Float32, Float64, Complex{Float32}, Complex{Float64},

0 commit comments

Comments
 (0)