Skip to content

Commit 281fec6

Browse files
Format .jl files
1 parent 3258bce commit 281fec6

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

ext/HealthBaseDrWatsonExt.jl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,12 @@ The study environment remains activated for you to immediately add packages.
193193
julia> initialize_study("Cardiooncology", "Jacob S. Zelko, Jakub Mitura"; github_name = "TheCedarPrince", template=:observational)
194194
```
195195
"""
196-
function HealthBase.initialize_study(path, authors = nothing; github_name = "PutYourGitHubNameHere", template::Symbol = :default)
196+
function HealthBase.initialize_study(
197+
path,
198+
authors = nothing;
199+
github_name = "PutYourGitHubNameHere",
200+
template::Symbol = :default,
201+
)
197202
tpl = study_template(template).template
198203
ftg = study_template(template).folders_to_gitignore
199204

@@ -222,7 +227,7 @@ function HealthBase.initialize_study(path, authors = nothing; github_name = "Put
222227
folders_to_gitignore = ftg,
223228
force = true,
224229
add_docs = true,
225-
github_name = github_name
230+
github_name = github_name,
226231
)
227232
cd(path)
228233
end

test/drwatsonext.jl

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ cd("..")
99
rm("test_study", recursive = true, force = true)
1010

1111
mktemp() do fname, f
12-
write(f, "X")
13-
seek(f, 0)
14-
redirect_stdin(f) do
12+
write(f, "X")
13+
seek(f, 0)
14+
redirect_stdin(f) do
1515
@test initialize_study(path; template = :llm) == nothing
16-
end
16+
end
1717
end
1818

1919
cd("..")
@@ -46,7 +46,11 @@ quickactivate(path)
4646
cd("..")
4747
rm("test_study", recursive = true, force = true)
4848

49-
@test_throws ErrorException initialize_study(path; github_name = github_name, template = :foobar)
49+
@test_throws ErrorException initialize_study(
50+
path;
51+
github_name = github_name,
52+
template = :foobar,
53+
)
5054

5155
STUDY_TEMPLATES = Base.get_extension(HealthBase, :HealthBaseDrWatsonExt).STUDY_TEMPLATES
5256

0 commit comments

Comments
 (0)