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
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# ExprTools

[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://invenia.github.io/ExprTools.jl/stable)
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://invenia.github.io/ExprTools.jl/dev)
[![CI](https://github.com/Invenia/ExprTools.jl/workflows/CI/badge.svg)](https://github.com/Invenia/ExprTools.jl/actions?query=workflow%3ACI)
[![Coverage](https://codecov.io/gh/invenia/ExprTools.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/invenia/ExprTools.jl)
[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://JuliaTesting.github.io/ExprTools.jl/stable)
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://JuliaTesting.github.io/ExprTools.jl/dev)
[![CI](https://github.com/JuliaTesting/ExprTools.jl/workflows/CI/badge.svg)](https://github.com/JuliaTesting/ExprTools.jl/actions?query=workflow%3ACI)
[![Coverage](https://codecov.io/gh/JuliaTesting/ExprTools.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaTesting/ExprTools.jl)

ExprTools provides tooling for working with Julia expressions during [metaprogramming](https://docs.julialang.org/en/v1/manual/metaprogramming/).
This package aims to provide light-weight performant tooling without requiring additional package dependencies.
Expand Down
6 changes: 3 additions & 3 deletions docs/make.jl
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

pages=[
"Home" => "index.md",
"API" => "api.md"
],

Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ using Documenter
makedocs(;
modules=[ExprTools],
authors="Curtis Vogt <curtis.vogt@gmail.com>",
repo="https://github.com/invenia/ExprTools.jl/blob/{commit}{path}#L{line}",
repo="https://github.com/JuliaTesting/ExprTools.jl/blob/{commit}{path}#L{line}",
sitename="ExprTools.jl",
format=Documenter.HTML(;
prettyurls=get(ENV, "CI", "false") == "true",
canonical="https://invenia.github.io/ExprTools.jl",
canonical="https://JuliaTesting.github.io/ExprTools.jl",
assets=String[],
),
pages=[
Expand All @@ -18,5 +18,5 @@ makedocs(;
)

deploydocs(;
repo="github.com/invenia/ExprTools.jl",
repo="github.com/JuliaTesting/ExprTools.jl",
)
Comment on lines 20 to 22
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
deploydocs(;
repo="github.com/invenia/ExprTools.jl",
repo="github.com/JuliaTesting/ExprTools.jl",
)
deploydocs(; repo="github.com/JuliaTesting/ExprTools.jl")

2 changes: 1 addition & 1 deletion src/method.jl
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ function kwargs(m::Method)
names = kwarg_names(m)
isempty(names) && return nothing # we know it has no keywords.
# TODO: Enhance this to support more than just their names
# see https://github.com/invenia/ExprTools.jl/issues/6
# see https://github.com/JuliaTesting/ExprTools.jl/issues/6
return names
end

Expand Down
6 changes: 3 additions & 3 deletions test/method.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function test_matches(candidate::AbstractDict, target::Dict)
haskey(target, :kwargs) && @test target[:kwargs] == get(candidate, :kwargs, nothing)

# TODO: support return value declaration in signature
# See https://github.com/invenia/ExprTools.jl/issues/5
# See https://github.com/JuliaTesting/ExprTools.jl/issues/5
haskey(target, :rtype) && @test_broken target[:rtype] == get(candidate, :rtype, nothing)
return nothing
end
Expand Down Expand Up @@ -213,7 +213,7 @@ struct TestCallableStruct end
end

# Only test on 1.3 because of issues with declaring structs in 1.0-1.2
# TODO: https://github.com/invenia/ExprTools.jl/issues/7
# TODO: https://github.com/JuliaTesting/ExprTools.jl/issues/7
VERSION >= v"1.3" && @eval @testset "Constructors (basic)" begin
# demo type for testing on
struct NoParamStruct
Expand Down Expand Up @@ -247,7 +247,7 @@ struct TestCallableStruct end
end

# Only test on 1.3 because of issues with declaring structs in 1.0-1.2
# TODO: https://github.com/invenia/ExprTools.jl/issues/7
# TODO: https://github.com/JuliaTesting/ExprTools.jl/issues/7
VERSION >= v"1.3" && @eval @testset "params (via Constructors with type params)" begin
struct OneParamStruct{T}
x::T
Expand Down
2 changes: 1 addition & 1 deletion test/type_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
@test s.lb == Union{}
@test s.ub == Any

# https://github.com/invenia/ExprTools.jl/issues/39
# https://github.com/JuliaTesting/ExprTools.jl/issues/39
@testset "#39" begin
s = signature(Tuple{Type{T},T} where {T<:Number})
@test only(s[:whereparams]).args[1] == :T
Expand Down
Loading