Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: use julia-actions/julia-format action #61

Merged
merged 11 commits into from
Jun 24, 2024
35 changes: 35 additions & 0 deletions .github/workflows/format-julia.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "Format: Julia"
on:
push:
branches:
- main
paths:
- "**.jl"
- ".JuliaFormatter.toml"
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
- labeled
paths:
- "**.jl"
- ".JuliaFormatter.toml"

env:
CI: true

jobs:
format:
runs-on: ubuntu-latest
steps:
# - uses: julia-actions/julia-format@v3
- uses: zot/julia-format@zot/restore-file-list
with:
# Version compat for JuliaFormatter.jl (default: '1')
# E.g. set to '1.0.54' if you need to use JuliaFormatter.jl v1.0.54
version: '1'
# GitHub PR label that enabled formatting suggestions.
# Leave this unset or empty to show suggestions for all PRs.
suggestion-label: 'format-suggest'
41 changes: 0 additions & 41 deletions .github/workflows/julia_formatter.yml

This file was deleted.

3 changes: 1 addition & 2 deletions src/authentication.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ mutable struct Authentication
function Authentication(
server::URIs.URI, api_version::VersionNumber, username::AbstractString, token::Secret;
tokenpath::Union{AbstractString, Nothing}=nothing,
email::Union{AbstractString, Nothing}=nothing,
expires::Union{Integer, Nothing}=nothing,
email::Union{AbstractString, Nothing}=nothing, expires::Union{Integer, Nothing}=nothing
mortenpi marked this conversation as resolved.
Show resolved Hide resolved
)
# The authentication() function should take care of sanitizing the inputs here,
# so it is fine to just error() here.
Expand Down
Loading