From 56525455e9396a1086b26a4dc0082485a91c4a02 Mon Sep 17 00:00:00 2001 From: singularitti <25192197+singularitti@users.noreply.github.com> Date: Thu, 17 Oct 2024 00:06:31 +0000 Subject: [PATCH] Format .jl files --- EasyJobsBase/src/operations.jl | 5 +++-- EasyJobsBase/src/run.jl | 5 +++-- EasyJobsBase/test/async.jl | 2 +- EasyJobsBase/test/operations.jl | 2 +- docs/make.jl | 9 ++------- test/async.jl | 2 +- test/operations.jl | 2 +- 7 files changed, 12 insertions(+), 15 deletions(-) diff --git a/EasyJobsBase/src/operations.jl b/EasyJobsBase/src/operations.jl index 2165b56..293415a 100644 --- a/EasyJobsBase/src/operations.jl +++ b/EasyJobsBase/src/operations.jl @@ -48,8 +48,9 @@ function chain_succeeded!(x::AbstractJob, y::Union{ConditionalJob,ArgDependentJo end return x end -chain_succeeded!(x::AbstractJob, y::AbstractJob, z::AbstractJob...) = - foldr(chain_succeeded!, (x, y, z...)) +chain_succeeded!(x::AbstractJob, y::AbstractJob, z::AbstractJob...) = foldr( + chain_succeeded!, (x, y, z...) +) ↣(x::AbstractJob, y::AbstractJob) = chain_succeeded!(x, y) ↢(y::AbstractJob, x::AbstractJob) = x ↣ y diff --git a/EasyJobsBase/src/run.jl b/EasyJobsBase/src/run.jl index adea56f..2a91028 100644 --- a/EasyJobsBase/src/run.jl +++ b/EasyJobsBase/src/run.jl @@ -51,8 +51,9 @@ Run a `Job` with a maximum number of attempts, with each attempt separated by `i and an initial `delay` in seconds. """ run!(job::AbstractJob; kwargs...) = execute!(job, AsyncExecutor(; kwargs...)) -run!(job::AbstractJob, worker::Integer; kwargs...) = - execute!(job, ParallelExecutor(worker; kwargs...)) +run!(job::AbstractJob, worker::Integer; kwargs...) = execute!( + job, ParallelExecutor(worker; kwargs...) +) """ execute!(job::AbstractJob, exec::Executor) diff --git a/EasyJobsBase/test/async.jl b/EasyJobsBase/test/async.jl index efdabb8..eeb1740 100644 --- a/EasyJobsBase/test/async.jl +++ b/EasyJobsBase/test/async.jl @@ -156,7 +156,7 @@ end (i, j, k) .→ l @test !shouldrun(l) map((i, j, k)) do job - run!(job; wait=true) + return run!(job; wait=true) end @test shouldrun(l) run!(l; wait=true) diff --git a/EasyJobsBase/test/operations.jl b/EasyJobsBase/test/operations.jl index ab46c1f..72a02a1 100644 --- a/EasyJobsBase/test/operations.jl +++ b/EasyJobsBase/test/operations.jl @@ -24,7 +24,7 @@ @assert l.skip_incomplete @test !shouldrun(l) execs = map((i, j, k)) do job - run!(job) + return run!(job) end for exec in execs wait(exec) diff --git a/docs/make.jl b/docs/make.jl index 4bc7d2e..a089e0f 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -16,9 +16,7 @@ makedocs(; ), pages=[ "Home" => "index.md", - "Manual" => [ - "Installation guide" => "installation.md", - ], + "Manual" => ["Installation guide" => "installation.md"], "Public API" => "public.md", "Developer Docs" => [ "Contributing" => "developers/contributing.md", @@ -29,7 +27,4 @@ makedocs(; ], ) -deploydocs(; - repo="github.com/MineralsCloud/EasyJobs.jl", - devbranch="main", -) +deploydocs(; repo="github.com/MineralsCloud/EasyJobs.jl", devbranch="main") diff --git a/test/async.jl b/test/async.jl index efdabb8..eeb1740 100644 --- a/test/async.jl +++ b/test/async.jl @@ -156,7 +156,7 @@ end (i, j, k) .→ l @test !shouldrun(l) map((i, j, k)) do job - run!(job; wait=true) + return run!(job; wait=true) end @test shouldrun(l) run!(l; wait=true) diff --git a/test/operations.jl b/test/operations.jl index ab46c1f..72a02a1 100644 --- a/test/operations.jl +++ b/test/operations.jl @@ -24,7 +24,7 @@ @assert l.skip_incomplete @test !shouldrun(l) execs = map((i, j, k)) do job - run!(job) + return run!(job) end for exec in execs wait(exec)