Skip to content

Commit

Permalink
Format code with JuliaFormatter (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
devmotion authored Jun 13, 2021
1 parent 86ceae3 commit a8ec28f
Show file tree
Hide file tree
Showing 16 changed files with 597 additions and 487 deletions.
1 change: 1 addition & 0 deletions .JuliaFormatter.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
style="blue"
28 changes: 28 additions & 0 deletions .github/workflows/Format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Format

on:
push:
branches:
- main
pull_request:

jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: 1
- name: Format code
run: |
using Pkg
Pkg.add(; name="JuliaFormatter", uuid="98e50ef6-434e-11e9-1051-2b60c6c9e899")
using JuliaFormatter
format("."; verbose=true)
shell: julia --color=yes {0}
- uses: reviewdog/action-suggester@v1
if: github.event_name == 'pull_request'
with:
tool_name: JuliaFormatter
fail_on_error: true
20 changes: 10 additions & 10 deletions src/InferenceDiagnostics.jl
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
module InferenceDiagnostics

import AbstractFFTs
import DataAPI
import Distributions
import MLJModelInterface
import SpecialFunctions
import StatsBase
import Tables
using AbstractFFTs: AbstractFFTs
using DataAPI: DataAPI
using Distributions: Distributions
using MLJModelInterface: MLJModelInterface
using SpecialFunctions: SpecialFunctions
using StatsBase: StatsBase
using Tables: Tables

import LinearAlgebra
import Random
import Statistics
using LinearAlgebra: LinearAlgebra
using Random: Random
using Statistics: Statistics

export discretediag
export ess_rhat, ESSMethod, FFTESSMethod, BDAESSMethod
Expand Down
Loading

0 comments on commit a8ec28f

Please sign in to comment.