Skip to content

Commit a77bb08

Browse files
authored
Apply format patch (#167)
1 parent 64f3aed commit a77bb08

14 files changed

+110
-130
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
21
version: 2
32
updates:
43
- package-ecosystem: "github-actions"
5-
directory: "/" # Location of package manifests
4+
directory: "/"
65
schedule:
76
interval: "weekly"

.github/workflows/CompatHelper.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
name: "CompatHelper"
2-
32
on:
43
schedule:
5-
- cron: '0 0 * * *'
6-
workflow_dispatch:
4+
- cron: "0 0 * * *"
5+
workflow_dispatch: ~
76
permissions:
8-
contents: write
9-
pull-requests: write
10-
7+
contents: "write"
8+
pull-requests: "write"
119
jobs:
1210
compat-helper:
1311
name: "CompatHelper"
Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
11
name: "Documentation"
2-
32
on:
43
push:
54
branches:
6-
- main
7-
tags: '*'
8-
pull_request:
5+
- "main"
6+
tags: "*"
7+
pull_request: ~
98
schedule:
10-
- cron: '1 4 * * 4'
11-
9+
- cron: "1 4 * * 4"
1210
concurrency:
13-
group: ${{ github.workflow }}-${{ github.ref }}
14-
cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch || github.ref != 'refs/tags/v*' }}
15-
11+
group: "${{ github.workflow }}-${{ github.ref }}"
12+
cancel-in-progress: "${{ github.ref_name != github.event.repository.default_branch || github.ref != 'refs/tags/v*' }}"
1613
jobs:
1714
build-and-deploy-docs:
1815
name: "Documentation"
1916
uses: "ITensor/ITensorActions/.github/workflows/Documentation.yml@main"
2017
with:
21-
localregistry: https://github.com/ITensor/ITensorRegistry.git
18+
localregistry: "https://github.com/ITensor/ITensorRegistry.git"
2219
secrets:
23-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
20+
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"

.github/workflows/FormatCheck.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
name: "Format Check"
2-
32
on:
43
pull_request_target:
5-
paths: ['**/*.jl']
6-
types: [opened, synchronize, reopened, ready_for_review]
7-
4+
paths:
5+
- "**/*.jl"
6+
types:
7+
- "opened"
8+
- "synchronize"
9+
- "reopened"
10+
- "ready_for_review"
811
permissions:
9-
contents: read
10-
actions: write
11-
pull-requests: write
12-
12+
contents: "read"
13+
actions: "write"
14+
pull-requests: "write"
1315
jobs:
1416
format-check:
1517
name: "Format Check"

.github/workflows/FormatPullRequest.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
name: "Format Pull Request"
2-
32
on:
43
schedule:
5-
- cron: '0 0 * * *'
6-
workflow_dispatch:
4+
- cron: "0 0 * * *"
5+
workflow_dispatch: ~
76
permissions:
8-
contents: write
9-
pull-requests: write
10-
7+
contents: "write"
8+
pull-requests: "write"
119
jobs:
1210
format-pull-request:
1311
name: "Format Pull Request"

.github/workflows/IntegrationTest.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
11
name: "IntegrationTest"
2-
32
on:
43
push:
54
branches:
6-
- 'main'
7-
tags: '*'
5+
- "main"
6+
tags: "*"
87
paths:
9-
- 'Project.toml'
8+
- "Project.toml"
109
pull_request:
1110
paths:
12-
- 'Project.toml'
13-
11+
- "Project.toml"
1412
jobs:
1513
integration-test:
1614
name: "IntegrationTest"
1715
strategy:
18-
matrix:
19-
pkg:
20-
- 'DiagonalArrays'
21-
- 'GradedArrays'
22-
- 'ITensorBase'
23-
- 'ITensorNetworksNext'
24-
- 'SparseArraysBase'
16+
matrix:
17+
pkg:
18+
- "DiagonalArrays"
19+
- "GradedArrays"
20+
- "ITensorBase"
21+
- "ITensorNetworksNext"
22+
- "SparseArraysBase"
2523
uses: "ITensor/ITensorActions/.github/workflows/IntegrationTest.yml@main"
2624
with:
2725
localregistry: "https://github.com/ITensor/ITensorRegistry.git"
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name: "Integration Test Request"
2-
32
on:
43
issue_comment:
5-
types: [created]
6-
4+
types:
5+
- "created"
76
jobs:
87
integrationrequest:
98
if: |
109
github.event.issue.pull_request &&
1110
contains(fromJSON('["OWNER", "COLLABORATOR", "MEMBER"]'), github.event.comment.author_association)
12-
uses: ITensor/ITensorActions/.github/workflows/IntegrationTestRequest.yml@main
11+
12+
uses: "ITensor/ITensorActions/.github/workflows/IntegrationTestRequest.yml@main"
1313
with:
14-
localregistry: https://github.com/ITensor/ITensorRegistry.git
14+
localregistry: "https://github.com/ITensor/ITensorRegistry.git"
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
name: "Literate Check"
2-
32
on:
43
push:
54
branches:
6-
- 'main'
7-
tags: '*'
8-
pull_request:
9-
5+
- "main"
6+
tags: "*"
7+
pull_request: ~
108
jobs:
119
literate:
1210
name: "Literate Check"
1311
uses: "ITensor/ITensorActions/.github/workflows/LiterateCheck.yml@main"
1412
with:
15-
localregistry: https://github.com/ITensor/ITensorRegistry.git
13+
localregistry: "https://github.com/ITensor/ITensorRegistry.git"

.github/workflows/Registrator.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
1-
name: Register Package
1+
name: "Register Package"
22
on:
3-
workflow_dispatch:
3+
workflow_dispatch: ~
44
push:
55
branches:
6-
- 'master'
7-
- 'main'
6+
- "master"
7+
- "main"
88
paths:
9-
- 'Project.toml'
10-
9+
- "Project.toml"
1110
permissions:
12-
contents: write
13-
pull-requests: write
14-
11+
contents: "write"
12+
pull-requests: "write"
1513
jobs:
1614
Register:
1715
uses: "ITensor/ITensorActions/.github/workflows/Registrator.yml@main"
1816
with:
19-
localregistry: ITensor/ITensorRegistry
17+
localregistry: "ITensor/ITensorRegistry"
2018
secrets:
21-
REGISTRATOR_KEY: ${{ secrets.REGISTRATOR_KEY }}
19+
REGISTRATOR_KEY: "${{ secrets.REGISTRATOR_KEY }}"

.github/workflows/TagBot.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
name: TagBot
1+
name: "TagBot"
22
on:
33
issue_comment:
44
types:
5-
- created
5+
- "created"
66
workflow_dispatch:
77
inputs:
88
lookback:
99
default: "3"
1010
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
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"
2323
jobs:
2424
TagBot:
25-
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
26-
runs-on: ubuntu-latest
25+
if: "github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'"
26+
runs-on: "ubuntu-latest"
2727
steps:
28-
- uses: JuliaRegistries/TagBot@v1
28+
- uses: "JuliaRegistries/TagBot@v1"
2929
with:
30-
token: ${{ secrets.GITHUB_TOKEN }}
31-
ssh: ${{ secrets.DOCUMENTER_KEY }}
30+
token: "${{ secrets.GITHUB_TOKEN }}"
31+
ssh: "${{ secrets.DOCUMENTER_KEY }}"

0 commit comments

Comments
 (0)