Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
getzze committed Sep 23, 2024
1 parent 2be42e5 commit 17aaacc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/format-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
#
# julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter", version="0.13.0"))'
run: |
julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter"))'
julia -e 'using Pkg; Pkg.add("JuliaFormatter")'
julia -e 'using JuliaFormatter; format(["src", "test"], verbose=true)'
- name: Format check
run: |
Expand Down
3 changes: 1 addition & 2 deletions src/RobustModels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ using StatsModels: StatsModels

## Import to implement new methods
import Base: show, broadcastable, convert, ==
import GLM:
dispersion, LinPred, DensePred, ModResp, delbeta!, linpred!, installbeta!
import GLM: dispersion, LinPred, DensePred, ModResp, delbeta!, linpred!, installbeta!
import StatsBase:
fit,
fit!,
Expand Down
2 changes: 1 addition & 1 deletion src/linpred.jl
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ leverage_weights(p::LinPred, wt::AbstractVector) = sqrt.(1 .- leverage(p, wt))
end


## Use DensePredQR from GLM
## Use DensePredQR from GLM
elseif get_pkg_version(GLM) < v"1.10"
using GLM: DensePredQR
qrpred(X::AbstractMatrix, pivot::Bool=false) = DensePredQR(X, pivot)
Expand Down

0 comments on commit 17aaacc

Please sign in to comment.