diff --git a/.github/workflows/FormatCheck.yml b/.github/workflows/FormatCheck.yml index dd55150..c803784 100644 --- a/.github/workflows/FormatCheck.yml +++ b/.github/workflows/FormatCheck.yml @@ -1,11 +1,6 @@ name: format-check on: - push: - branches: - - 'master' - - 'release-' - tags: '*' pull_request: jobs: @@ -29,14 +24,9 @@ jobs: run: | julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter"))' julia -e 'using JuliaFormatter; format(".", verbose=true)' - - name: Format check - run: | - julia -e ' - out = Cmd(`git diff --name-only`) |> read |> String - if out == "" - exit(0) - else - @error "Some files have not been formatted !!!" - write(stdout, out) - exit(1) - end' + - uses: reviewdog/action-suggester@v1 + with: + github_token: ${{ secrets.DOCUMENTER_KEY }} + tool_name: JuliaFormatter + fail_on_error: true + filter_mode: added \ No newline at end of file diff --git a/src/krylov_phiv.jl b/src/krylov_phiv.jl index eb34145..48f07ed 100644 --- a/src/krylov_phiv.jl +++ b/src/krylov_phiv.jl @@ -12,7 +12,7 @@ function Base.resize!(C::ExpvCache{T}, maxiter::Int) where {T} end function get_cache(C::ExpvCache, m::Int) m^2 > length(C.mem) && resize!(C, m) # resize the cache if needed - reshape(@view(C.mem[1:(m^2)]), m, m) + reshape(@view(C.mem[1:(m^2)]), m,m) end ############################