Skip to content

Commit 9da0885

Browse files
Move test deps out of [deps]. (#114)
* Move test deps out of `[deps]`. * Move `import` to top of package.
1 parent 2f833c5 commit 9da0885

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

Project.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@ version = "0.8.4"
44

55
[deps]
66
LibGit2 = "76f85450-5226-5b5a-8eaa-529ad045b433"
7+
8+
[compat]
9+
julia = "1"
10+
11+
[extras]
712
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
813
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
914
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1015

11-
[compat]
12-
julia = "0.7, 1"
16+
[targets]
17+
test = ["Markdown", "Pkg", "Test"]

src/DocStringExtensions.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ $(IMPORTS)
7575
"""
7676
module DocStringExtensions
7777

78+
# Imports.
79+
80+
import LibGit2
81+
7882
# Exports.
7983

8084
export @template, FIELDS, TYPEDFIELDS, EXPORTS, METHODLIST, IMPORTS

src/utilities.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,6 @@ on TravisCI as well.
394394
"""
395395
url(m::Method) = url(m.module, string(m.file), m.line)
396396

397-
import LibGit2
398-
399397
function url(mod::Module, file::AbstractString, line::Integer)
400398
file = Sys.iswindows() ? replace(file, '\\' => '/') : file
401399
if Base.inbase(mod) && !isabspath(file)

0 commit comments

Comments
 (0)