Skip to content

Commit b8a9976

Browse files
authored
Apply format patch (#20)
1 parent fe44bc6 commit b8a9976

20 files changed

Lines changed: 238 additions & 243 deletions

.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"

.github/workflows/Deploy.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
1-
name: Aggregate
1+
name: "Aggregate"
22
on:
33
push:
44
branches:
5-
- main
5+
- "main"
66
schedule:
7-
- cron: '0 0 * * *'
8-
workflow_dispatch:
7+
- cron: "0 0 * * *"
8+
workflow_dispatch: ~
99
jobs:
1010
aggregate:
11-
runs-on: ubuntu-latest
11+
runs-on: "ubuntu-latest"
1212
steps:
13-
- uses: actions/checkout@v6
14-
- uses: julia-actions/setup-julia@v2
13+
- uses: "actions/checkout@v6"
14+
- uses: "julia-actions/setup-julia@v2"
1515
with:
16-
version: '1'
17-
- name: Install dependencies
18-
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(path="."); Pkg.instantiate()'
19-
- name: Aggregate and deploy
16+
version: "1"
17+
- name: "Install dependencies"
18+
run: |-
19+
julia --project=docs/ -e 'using Pkg; Pkg.develop(path="."); Pkg.instantiate()'
20+
- name: "Aggregate and deploy"
2021
run: |
2122
git config user.name github-actions
2223
git config user.email github-actions@github.com
2324
julia --project=docs/ docs/make.jl deploy
25+

.github/workflows/FormatCheck.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
name: "Format 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
format-check:
1210
name: "Format Check"
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: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
1-
name: Register Package
1+
name: "Register Package"
22
on:
3-
workflow_dispatch:
3+
workflow_dispatch: ~
44
pull_request:
55
types:
6-
- closed
6+
- "closed"
77
paths:
8-
- 'Project.toml'
8+
- "Project.toml"
99
branches:
10-
- 'master'
11-
- 'main'
12-
10+
- "master"
11+
- "main"
1312
permissions:
14-
contents: write
15-
pull-requests: write
16-
13+
contents: "write"
14+
pull-requests: "write"
1715
jobs:
1816
Register:
19-
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true
17+
if: "github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true"
2018
uses: "ITensor/ITensorActions/.github/workflows/Registrator.yml@main"
2119
with:
22-
localregistry: ITensor/ITensorRegistry
20+
localregistry: "ITensor/ITensorRegistry"
2321
secrets:
24-
REGISTRATOR_KEY: ${{ secrets.REGISTRATOR_KEY }}
22+
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 }}"

.github/workflows/Tests.yml

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,36 @@
1-
name: Tests
1+
name: "Tests"
22
on:
33
push:
44
branches:
5-
- 'master'
6-
- 'main'
7-
- 'release-'
8-
tags: '*'
5+
- "master"
6+
- "main"
7+
- "release-"
8+
tags: "*"
99
paths-ignore:
10-
- 'docs/**'
11-
pull_request:
12-
workflow_dispatch:
13-
10+
- "docs/**"
11+
pull_request: ~
12+
workflow_dispatch: ~
1413
concurrency:
15-
group: ${{ github.workflow }}-${{ github.ref }}
16-
# Cancel intermediate builds: only if it is a pull request build.
17-
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
18-
14+
group: "${{ github.workflow }}-${{ github.ref }}"
15+
cancel-in-progress: "${{ startsWith(github.ref, 'refs/pull/') }}"
1916
jobs:
2017
tests:
2118
name: "Tests"
2219
strategy:
2320
fail-fast: false
2421
matrix:
2522
version:
26-
- 'lts' # minimal supported version
27-
- '1' # latest released Julia version
28-
# group:
29-
# - 'core'
30-
# - 'optional'
23+
- "lts"
24+
- "1"
3125
os:
32-
- ubuntu-latest
33-
- macOS-latest
34-
- windows-latest
26+
- "ubuntu-latest"
27+
- "macOS-latest"
28+
- "windows-latest"
3529
uses: "ITensor/ITensorActions/.github/workflows/Tests.yml@main"
3630
with:
3731
group: "${{ matrix.group }}"
3832
julia-version: "${{ matrix.version }}"
3933
os: "${{ matrix.os }}"
40-
localregistry: https://github.com/ITensor/ITensorRegistry.git
34+
localregistry: "https://github.com/ITensor/ITensorRegistry.git"
4135
secrets:
42-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
36+
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"

.pre-commit-config.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
ci:
2-
skip: [julia-formatter]
3-
2+
skip:
3+
- "julia-formatter"
44
repos:
5-
- repo: https://github.com/pre-commit/pre-commit-hooks
6-
rev: v6.0.0
7-
hooks:
8-
- id: check-merge-conflict
9-
- id: check-toml
10-
- id: check-yaml
11-
- id: end-of-file-fixer
12-
exclude_types: [markdown] # incompatible with Literate.jl
13-
14-
- repo: "https://github.com/domluna/JuliaFormatter.jl"
15-
rev: v2.3.0
16-
hooks:
17-
- id: "julia-formatter"
5+
- repo: "https://github.com/pre-commit/pre-commit-hooks"
6+
rev: "v6.0.0"
7+
hooks:
8+
- id: "check-merge-conflict"
9+
- id: "check-toml"
10+
- id: "check-yaml"
11+
- id: "end-of-file-fixer"
12+
exclude_types:
13+
- "markdown"
14+
- repo: "https://github.com/domluna/JuliaFormatter.jl"
15+
rev: "v2.3.0"
16+
hooks:
17+
- id: "julia-formatter"

0 commit comments

Comments
 (0)