Skip to content

Commit 7495b65

Browse files
Merge pull request #1 from HarryWang0619/Repository-Setup
Add Format github action and JuliaFormatter (SciML style)
2 parents 992f309 + f351fb2 commit 7495b65

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/Format.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Format suggestions
2+
on:
3+
pull_request:
4+
# this argument is not required if you don't use the `suggestion-label` input
5+
types: [ opened, reopened, synchronize, labeled, unlabeled ]
6+
jobs:
7+
code-style:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: julia-actions/julia-format@v4
11+
with:
12+
version: '1' # Set `version` to '1.0.54' if you need to use JuliaFormatter.jl v1.0.54 (default: '1')
13+
suggestion-label: 'format-suggest' # leave this unset or empty to show suggestions for all PRs

JuliaFormatter.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
style = "sciml"
2+
yas_style_nesting = true
3+
4+
# Do not format notebooks
5+
ignore = ["*-pluto.jl", "*-nb.jl"]

0 commit comments

Comments
 (0)