Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
name: Format
name: Runic formatting
on:
push:
branches: [master]
tags: [v*]
branches:
- 'master'
- 'release-'
tags:
- '*'
pull_request:

jobs:
format:
name: "Format Check"
runic:
name: Runic
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
- uses: actions/checkout@v5
# - uses: julia-actions/setup-julia@v2
# with:
# version: '1'
# - uses: julia-actions/cache@v2
- uses: fredrikekre/runic-action@v1
with:
version: 1
- uses: julia-actions/cache@v2
- name: Install JuliaFormatter and format
run: |
using Pkg
Pkg.add(PackageSpec(name="JuliaFormatter", version="1"))
using JuliaFormatter
format("."; verbose=true)
shell: julia --color=yes {0}
- name: Suggest formatting changes
uses: reviewdog/action-suggester@v1
version: '1'
format_files: true
# Fail on next step instead
continue-on-error: ${{ github.event_name == 'pull_request' }}
- uses: reviewdog/action-suggester@v1
if: github.event_name == 'pull_request'
with:
tool_name: JuliaFormatter
fail_on_error: true
tool_name: Runic
fail_level: warning
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
repos:
- repo: https://github.com/fredrikekre/runic-pre-commit
rev: v2.0.1
hooks:
- id: runic
16 changes: 9 additions & 7 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@
#

if "--help" ∈ ARGS
println("""
docs/make.jl
println(
"""
docs/make.jl

Render the `AlgorithmsInterface.jl` documentation with optional arguments
Render the `AlgorithmsInterface.jl` documentation with optional arguments

Arguments
* `--help` print this help and exit without rendering the documentation
* `--prettyurls` toggle the pretty urls part to true, which is always set on CI
""")
Arguments
* `--help` print this help and exit without rendering the documentation
* `--prettyurls` toggle the pretty urls part to true, which is always set on CI
"""
)
exit(0)
end

Expand Down
Loading
Loading