-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement JuliaFormatter with SciML style (#87)
* format with SciMLStyle * Tighten up notation to prevent multi-line spans * Condense some lines to prevent multi-line spans * Specify kwargs type as Pairs --------- Co-authored-by: Michael Ingold <[email protected]>
- Loading branch information
1 parent
41c5dfe
commit 0a6eaaf
Showing
24 changed files
with
375 additions
and
356 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,11 @@ | ||
name: Format suggestions | ||
on: | ||
pull_request | ||
|
||
jobs: | ||
code-style: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: julia-actions/julia-format@v3 | ||
with: | ||
version: '1' # Set `version` to '1.0.54' if you need to use JuliaFormatter.jl v1.0.54 (default: '1') |
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,35 +1,35 @@ | ||
module MeshIntegrals | ||
using CoordRefSystems | ||
using LinearAlgebra | ||
using Meshes | ||
using Unitful | ||
using CoordRefSystems | ||
using LinearAlgebra | ||
using Meshes | ||
using Unitful | ||
|
||
import FastGaussQuadrature | ||
import HCubature | ||
import QuadGK | ||
import FastGaussQuadrature | ||
import HCubature | ||
import QuadGK | ||
|
||
include("utils.jl") | ||
export jacobian, derivative, unitdirection | ||
include("utils.jl") | ||
export jacobian, derivative, unitdirection | ||
|
||
include("integration_rules.jl") | ||
export IntegrationRule, GaussKronrod, GaussLegendre, HAdaptiveCubature | ||
include("integration_rules.jl") | ||
export IntegrationRule, GaussKronrod, GaussLegendre, HAdaptiveCubature | ||
|
||
include("integral.jl") | ||
export integral | ||
include("integral.jl") | ||
export integral | ||
|
||
include("integral_aliases.jl") | ||
export lineintegral, surfaceintegral, volumeintegral | ||
include("integral_aliases.jl") | ||
export lineintegral, surfaceintegral, volumeintegral | ||
|
||
# Integration methods specialized for particular geometries | ||
include("specializations/BezierCurve.jl") | ||
include("specializations/ConeSurface.jl") | ||
include("specializations/CylinderSurface.jl") | ||
include("specializations/FrustumSurface.jl") | ||
include("specializations/Line.jl") | ||
include("specializations/Plane.jl") | ||
include("specializations/Ray.jl") | ||
include("specializations/Ring.jl") | ||
include("specializations/Rope.jl") | ||
include("specializations/Tetrahedron.jl") | ||
include("specializations/Triangle.jl") | ||
# Integration methods specialized for particular geometries | ||
include("specializations/BezierCurve.jl") | ||
include("specializations/ConeSurface.jl") | ||
include("specializations/CylinderSurface.jl") | ||
include("specializations/FrustumSurface.jl") | ||
include("specializations/Line.jl") | ||
include("specializations/Plane.jl") | ||
include("specializations/Ray.jl") | ||
include("specializations/Ring.jl") | ||
include("specializations/Rope.jl") | ||
include("specializations/Tetrahedron.jl") | ||
include("specializations/Triangle.jl") | ||
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
Oops, something went wrong.