-
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #361 from SciML/format
setup SciML Style
- Loading branch information
Showing
44 changed files
with
2,815 additions
and
2,712 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
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: format-check | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
- 'release-' | ||
tags: '*' | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
julia-version: [1] | ||
julia-arch: [x86] | ||
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
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,39 +1,37 @@ | ||
pages = [ | ||
"index.md" | ||
"Tutorials" => [ | ||
"Basics" => "tutorials.md", | ||
"Radials" => "radials.md", | ||
"Kriging" => "kriging.md", | ||
"Gaussian Process" =>"abstractgps.md", | ||
"Lobachevsky" => "lobachevsky.md", | ||
"Linear" => "LinearSurrogate.md", | ||
"InverseDistance" => "InverseDistance.md", | ||
"RandomForest" => "randomforest.md", | ||
"SecondOrderPolynomial" => "secondorderpoly.md", | ||
"NeuralSurrogate" => "neural.md", | ||
"Wendland" => "wendland.md", | ||
"Polynomial Chaos" => "polychaos.md", | ||
"Variable Fidelity" => "variablefidelity.md", | ||
"Gradient Enhanced Kriging" => "gek.md" | ||
] | ||
"User guide" => [ | ||
"Samples" => "samples.md", | ||
"Surrogates" => "surrogate.md", | ||
"Optimization" => "optimizations.md" | ||
] | ||
"Benchmarks" => [ | ||
"Sphere function" => "sphere_function.md", | ||
"Lp norm" => "lp.md", | ||
"Rosenbrock" => "rosenbrock.md", | ||
"Tensor product" => "tensor_prod.md", | ||
"Cantilever beam" => "cantilever.md", | ||
"Water Flow function" => "water_flow.md", | ||
"Welded beam function" => "welded_beam.md", | ||
"Branin function" => "BraninFunction.md", | ||
"Ackley function" => "ackley.md", | ||
"Gramacy & Lee Function" => "gramacylee.md", | ||
"Salustowicz Benchmark" => "Salustowicz.md", | ||
"Multi objective optimization" => "multi_objective_opt.md" | ||
] | ||
"Contributing" => "contributing.md" | ||
] | ||
pages = ["index.md" | ||
"Tutorials" => [ | ||
"Basics" => "tutorials.md", | ||
"Radials" => "radials.md", | ||
"Kriging" => "kriging.md", | ||
"Gaussian Process" => "abstractgps.md", | ||
"Lobachevsky" => "lobachevsky.md", | ||
"Linear" => "LinearSurrogate.md", | ||
"InverseDistance" => "InverseDistance.md", | ||
"RandomForest" => "randomforest.md", | ||
"SecondOrderPolynomial" => "secondorderpoly.md", | ||
"NeuralSurrogate" => "neural.md", | ||
"Wendland" => "wendland.md", | ||
"Polynomial Chaos" => "polychaos.md", | ||
"Variable Fidelity" => "variablefidelity.md", | ||
"Gradient Enhanced Kriging" => "gek.md", | ||
] | ||
"User guide" => [ | ||
"Samples" => "samples.md", | ||
"Surrogates" => "surrogate.md", | ||
"Optimization" => "optimizations.md", | ||
] | ||
"Benchmarks" => [ | ||
"Sphere function" => "sphere_function.md", | ||
"Lp norm" => "lp.md", | ||
"Rosenbrock" => "rosenbrock.md", | ||
"Tensor product" => "tensor_prod.md", | ||
"Cantilever beam" => "cantilever.md", | ||
"Water Flow function" => "water_flow.md", | ||
"Welded beam function" => "welded_beam.md", | ||
"Branin function" => "BraninFunction.md", | ||
"Ackley function" => "ackley.md", | ||
"Gramacy & Lee Function" => "gramacylee.md", | ||
"Salustowicz Benchmark" => "Salustowicz.md", | ||
"Multi objective optimization" => "multi_objective_opt.md", | ||
] | ||
"Contributing" => "contributing.md"] |
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.