Skip to content

Commit 6c18a49

Browse files
authored
Revert "Add JSON.jl v1 support, bump patch version (#56)" (#57)
This reverts commit af7f0e7.
1 parent af7f0e7 commit 6c18a49

File tree

11 files changed

+188
-183
lines changed

11 files changed

+188
-183
lines changed

.git-blame-ignore-revs

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: "Format: Julia"
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths:
7+
- "**.jl"
8+
- ".JuliaFormatter.toml"
9+
- ".github/workflows/format-julia.yaml"
10+
# Note: no path filtering when running on PRs, since the formatter
11+
# is a required check, and therefore needs to always run.
12+
pull_request:
13+
types:
14+
- opened
15+
- reopened
16+
- synchronize
17+
- ready_for_review
18+
- labeled
19+
20+
env:
21+
CI: true
22+
23+
jobs:
24+
format:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: julia-actions/julia-format@v4
28+
with:
29+
# Version compat for JuliaFormatter.jl (default: '1')
30+
# E.g. set to '1.0.54' if you need to use JuliaFormatter.jl v1.0.54
31+
version: '1'
32+
# GitHub PR label that enabled formatting suggestions.
33+
# Leave this unset or empty to show suggestions for all PRs.
34+
suggestion-label: 'format-suggest'

.github/workflows/runic.yaml

Lines changed: 0 additions & 18 deletions
This file was deleted.

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "PkgAuthentication"
22
uuid = "4722fa14-9d28-45f9-a1e2-a38605bd88f0"
33
authors = ["Sebastian Pfitzner", "contributors"]
4-
version = "2.3.2"
4+
version = "2.3.1"
55

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

1313
[compat]
1414
Downloads = "1"
15-
JSON = "0.20, 0.21, 1"
15+
JSON = "0.20, 0.21"
1616
julia = "1.3"

bin/structure.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import InteractiveUtils, Markdown, TextWrap
55

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

2929
all_targets = Dict{String, Vector{String}}()
3030
ignore_errors = (
31-
PkgAuthentication.Failure, PkgAuthentication.Success,
31+
PkgAuthentication.Failure, PkgAuthentication.Success
3232
)
3333
for line in readlines(pathof(PkgAuthentication))
3434
m = match(r"^function step\(state::(.+?)\)::Union{(.+?)}$", line)
@@ -37,7 +37,7 @@ buffer = let buffer = IOBuffer(; write = true)
3737
end
3838
end
3939
choice_index = 0
40-
for state in sort(InteractiveUtils.subtypes(PkgAuthentication.State); by = string)
40+
for state in sort(InteractiveUtils.subtypes(PkgAuthentication.State); by=string)
4141
println(buffer)
4242
state_str = string(nameof(state))
4343
# Generate the connecting arrows between the states
@@ -67,8 +67,8 @@ buffer = let buffer = IOBuffer(; write = true)
6767
docstr_text = docstr.meta[:results][1].text[1]
6868
println(buffer, " note left of $(state_str)")
6969
TextWrap.print_wrapped(
70-
buffer, docstr_text; width = 65,
71-
initial_indent = 8, subsequent_indent = 8,
70+
buffer, docstr_text; width=65,
71+
initial_indent=8, subsequent_indent=8,
7272
)
7373
println(buffer)
7474
println(buffer, " end note")

0 commit comments

Comments
 (0)