Skip to content

Commit 0e0494e

Browse files
authored
Fix Vararg warning and update workflows (#90)
1 parent 4d67103 commit 0e0494e

File tree

6 files changed

+24
-8
lines changed

6 files changed

+24
-8
lines changed

.github/workflows/TagBot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@ on:
44
types:
55
- created
66
workflow_dispatch:
7+
inputs:
8+
lookback:
9+
default: "3"
10+
permissions:
11+
actions: read
12+
checks: read
13+
contents: write
14+
deployments: read
15+
issues: read
16+
discussions: read
17+
packages: read
18+
pages: read
19+
pull-requests: read
20+
repository-projects: read
21+
security-events: read
22+
statuses: read
723
jobs:
824
TagBot:
925
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'

.github/workflows/format_check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Format check
22
on:
33
push:
4-
branches: [master]
4+
branches: [main]
55
tags: [v*]
66
pull_request:
77

@@ -10,8 +10,8 @@ jobs:
1010
name: "Format Check"
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
14-
- uses: julia-actions/setup-julia@v1
13+
- uses: actions/checkout@v4
14+
- uses: julia-actions/setup-julia@v2
1515
with:
1616
version: 1
1717
- name: Install JuliaFormatter and format

.github/workflows/format_pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
9+
- uses: actions/checkout@v4
1010
- name: Install JuliaFormatter and format
1111
run: |
1212
julia -e 'import Pkg; Pkg.add("JuliaFormatter")'
@@ -15,7 +15,7 @@ jobs:
1515
# https://github.com/peter-evans/create-pull-request#reference-example
1616
- name: Create Pull Request
1717
id: cpr
18-
uses: peter-evans/create-pull-request@v3
18+
uses: peter-evans/create-pull-request@v7
1919
with:
2020
token: ${{ secrets.GITHUB_TOKEN }}
2121
commit-message: Format .jl files

.github/workflows/format_suggestions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
format:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
1717
- uses: julia-actions/setup-julia@latest
1818
with:
1919
version: 1

src/ITensors.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ end
125125
#
126126

127127
ITensors.IndexSet(is::IndexSet...) = unioninds(is)
128-
ITensors.IndexSet(is::Tuple{Vararg{<:IndexSet}}) = unioninds(is...)
128+
ITensors.IndexSet(is::Tuple{Vararg{IndexSet}}) = unioninds(is...)
129129

130130
Base.copy(is::IndexSet) = IndexSet(copy.(ITensors.data(is)))
131131

src/infinitecanonicalmps.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ end
5151
# of Index (Tuple, Vector, ITensor, etc.)
5252
indtype(i::Index) = typeof(i)
5353
indtype(T::Type{<:Index}) = T
54-
indtype(is::Tuple{Vararg{<:Index}}) = eltype(is)
54+
indtype(is::Tuple{Vararg{Index}}) = eltype(is)
5555
indtype(is::Vector{<:Index}) = eltype(is)
5656
indtype(A::ITensor...) = indtype(inds.(A))
5757

0 commit comments

Comments
 (0)