Skip to content

Commit

Permalink
added docstring and formatting action
Browse files Browse the repository at this point in the history
  • Loading branch information
ThummeTo committed Aug 19, 2024
1 parent 7875392 commit d98cf6f
Show file tree
Hide file tree
Showing 28 changed files with 2,867 additions and 1,196 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/Formatter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Format suggestions
on:
pull_request:
# this argument is not required if you don't use the `suggestion-label` input
types: [ opened, reopened, synchronize, labeled, unlabeled ]
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')
suggestion-label: 'format-suggest' # leave this unset or empty to show suggestions for all PRs

8 changes: 7 additions & 1 deletion ext/FMIZooExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ module FMIZooExt

using FMIImport, FMIZoo

function FMIImport.loadFMU(modelName::AbstractString, tool::AbstractString, version::AbstractString, fmiversion::AbstractString="2.0"; kwargs...)
function FMIImport.loadFMU(
modelName::AbstractString,
tool::AbstractString,
version::AbstractString,
fmiversion::AbstractString = "2.0";
kwargs...,
)
fname = get_model_filename(modelName, tool, version, fmiversion)
return FMIImport.loadFMU(fname; kwargs...)
end
Expand Down
Loading

0 comments on commit d98cf6f

Please sign in to comment.