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
2 changes: 0 additions & 2 deletions .git-blame-ignore-revs

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/format-julia.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "Format: Julia"
on:
push:
branches:
- main
paths:
- "**.jl"
- ".JuliaFormatter.toml"
- ".github/workflows/format-julia.yaml"
# Note: no path filtering when running on PRs, since the formatter
# is a required check, and therefore needs to always run.
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
- labeled

env:
CI: true

jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: julia-actions/julia-format@v4
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'
18 changes: 0 additions & 18 deletions .github/workflows/runic.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "PkgAuthentication"
uuid = "4722fa14-9d28-45f9-a1e2-a38605bd88f0"
authors = ["Sebastian Pfitzner", "contributors"]
version = "2.3.2"
version = "2.3.1"

[deps]
Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
Expand All @@ -12,5 +12,5 @@ TOML = "fa267f1f-6049-4f14-aa54-33bafae1ed76"

[compat]
Downloads = "1"
JSON = "0.20, 0.21, 1"
JSON = "0.20, 0.21"
julia = "1.3"
10 changes: 5 additions & 5 deletions bin/structure.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import InteractiveUtils, Markdown, TextWrap

# Rather than generating the file directly, we'll write the output to a buffer
# first, so that we wouldn't end up with a partial file if there is some error.
buffer = let buffer = IOBuffer(; write = true)
buffer = let buffer = IOBuffer(; write=true)
write(
buffer,
"""
Expand All @@ -28,7 +28,7 @@ buffer = let buffer = IOBuffer(; write = true)

all_targets = Dict{String, Vector{String}}()
ignore_errors = (
PkgAuthentication.Failure, PkgAuthentication.Success,
PkgAuthentication.Failure, PkgAuthentication.Success
)
for line in readlines(pathof(PkgAuthentication))
m = match(r"^function step\(state::(.+?)\)::Union{(.+?)}$", line)
Expand All @@ -37,7 +37,7 @@ buffer = let buffer = IOBuffer(; write = true)
end
end
choice_index = 0
for state in sort(InteractiveUtils.subtypes(PkgAuthentication.State); by = string)
for state in sort(InteractiveUtils.subtypes(PkgAuthentication.State); by=string)
println(buffer)
state_str = string(nameof(state))
# Generate the connecting arrows between the states
Expand Down Expand Up @@ -67,8 +67,8 @@ buffer = let buffer = IOBuffer(; write = true)
docstr_text = docstr.meta[:results][1].text[1]
println(buffer, " note left of $(state_str)")
TextWrap.print_wrapped(
buffer, docstr_text; width = 65,
initial_indent = 8, subsequent_indent = 8,
buffer, docstr_text; width=65,
initial_indent=8, subsequent_indent=8,
)
println(buffer)
println(buffer, " end note")
Expand Down
Loading
Loading