-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
95ee05b
commit 5c408b2
Showing
6 changed files
with
203 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
# See https://domluna.github.io/JuliaFormatter.jl/stable/ for a list of options | ||
style = "sciml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: FormatCheck | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
- 'release-' | ||
tags: '*' | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
julia-version: [1] | ||
julia-arch: [x64] | ||
os: [ubuntu-latest] | ||
steps: | ||
- uses: julia-actions/setup-julia@latest | ||
with: | ||
version: ${{ matrix.julia-version }} | ||
|
||
- uses: actions/checkout@v1 | ||
- name: Install JuliaFormatter and format | ||
# This will use the latest version by default but you can set the version like so: | ||
# | ||
# 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 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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
using ChaoticDynamicalSystemLibrary | ||
using Documenter | ||
|
||
DocMeta.setdocmeta!(ChaoticDynamicalSystemLibrary, :DocTestSetup, :(using ChaoticDynamicalSystemLibrary); recursive=true) | ||
DocMeta.setdocmeta!(ChaoticDynamicalSystemLibrary, | ||
:DocTestSetup, | ||
:(using ChaoticDynamicalSystemLibrary); | ||
recursive = true) | ||
|
||
makedocs(; | ||
modules=[ChaoticDynamicalSystemLibrary], | ||
authors="Nathanael Bosch <[email protected]> and contributors", | ||
repo="https://github.com/nathanaelbosch/ChaoticDynamicalSystemLibrary.jl/blob/{commit}{path}#{line}", | ||
sitename="ChaoticDynamicalSystemLibrary.jl", | ||
format=Documenter.HTML(; | ||
prettyurls=get(ENV, "CI", "false") == "true", | ||
canonical="https://nathanaelbosch.github.io/ChaoticDynamicalSystemLibrary.jl", | ||
edit_link="main", | ||
assets=String[], | ||
size_threshold_ignore = ["index.md"], | ||
), | ||
pages=[ | ||
modules = [ChaoticDynamicalSystemLibrary], | ||
authors = "Nathanael Bosch <[email protected]> and contributors", | ||
repo = "https://github.com/nathanaelbosch/ChaoticDynamicalSystemLibrary.jl/blob/{commit}{path}#{line}", | ||
sitename = "ChaoticDynamicalSystemLibrary.jl", | ||
format = Documenter.HTML(; | ||
prettyurls = get(ENV, "CI", "false") == "true", | ||
canonical = "https://nathanaelbosch.github.io/ChaoticDynamicalSystemLibrary.jl", | ||
edit_link = "main", | ||
assets = String[], | ||
size_threshold_ignore = ["index.md"],), | ||
pages = [ | ||
"Home" => "index.md", | ||
], | ||
) | ||
],) | ||
|
||
deploydocs(; | ||
repo="github.com/nathanaelbosch/ChaoticDynamicalSystemLibrary.jl", | ||
devbranch="main", | ||
) | ||
repo = "github.com/nathanaelbosch/ChaoticDynamicalSystemLibrary.jl", | ||
devbranch = "main",) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.