Skip to content

Commit f4239f3

Browse files
authored
Switch to ITensorFormatter, improve TagBot workflow, etc. (#97)
1 parent 1c5c99e commit f4239f3

File tree

22 files changed

+86
-87
lines changed

22 files changed

+86
-87
lines changed

.github/workflows/Registrator.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Register Package
2+
23
on:
34
workflow_dispatch:
45
push:

.github/workflows/TagBot.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,11 @@
11
name: TagBot
2+
23
on:
34
issue_comment:
45
types:
56
- created
67
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
8+
239
jobs:
2410
TagBot:
2511
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
@@ -28,4 +14,5 @@ jobs:
2814
- uses: JuliaRegistries/TagBot@v1
2915
with:
3016
token: ${{ secrets.GITHUB_TOKEN }}
17+
registry: ITensor/ITensorRegistry
3118
ssh: ${{ secrets.DOCUMENTER_KEY }}

.github/workflows/Tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Tests
2+
23
on:
34
push:
45
branches:
@@ -9,6 +10,7 @@ on:
910
paths-ignore:
1011
- 'docs/**'
1112
pull_request:
13+
types: [opened, synchronize, reopened, ready_for_review, converted_to_draft]
1214
workflow_dispatch:
1315

1416
concurrency:

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ci:
2-
skip: [runic]
2+
skip: [itensor-formatter]
33

44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
@@ -13,8 +13,8 @@ repos:
1313
- id: end-of-file-fixer
1414
exclude_types: [markdown] # incompatible with Literate.jl
1515

16-
- repo: https://github.com/fredrikekre/runic-pre-commit
17-
rev: v2.0.1
16+
- repo: https://github.com/ITensor/ITensorFormatter.jl
17+
rev: v0.2.9
1818
hooks:
19-
- id: runic
20-
exclude: (/.*)?templates(/.*)?$
19+
- id: itensor-formatter
20+
exclude: (/.*)?templates(/.*)?$

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ITensorPkgSkeleton"
22
uuid = "3d388ab1-018a-49f4-ae50-18094d5f71ea"
3-
version = "0.3.26"
3+
version = "0.3.27"
44
authors = ["ITensor developers <support@itensor.org> and contributors"]
55

66
[workspace]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://itensor.github.io/ITensorPkgSkeleton.jl/dev/)
55
[![Build Status](https://github.com/ITensor/ITensorPkgSkeleton.jl/actions/workflows/Tests.yml/badge.svg?branch=main)](https://github.com/ITensor/ITensorPkgSkeleton.jl/actions/workflows/Tests.yml?query=branch%3Amain)
66
[![Coverage](https://codecov.io/gh/ITensor/ITensorPkgSkeleton.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/ITensor/ITensorPkgSkeleton.jl)
7-
[![code style: runic](https://img.shields.io/badge/code_style-%E1%9A%B1%E1%9A%A2%E1%9A%BE%E1%9B%81%E1%9A%B2-black)](https://github.com/fredrikekre/Runic.jl)
7+
[![Code Style](https://img.shields.io/badge/code_style-ITensor-purple)](https://github.com/ITensor/ITensorFormatter.jl)
88
[![Aqua](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl)
99

1010
## Support

benchmark/benchmarks.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
using ITensorPkgSkeleton
21
using BenchmarkTools
2+
using ITensorPkgSkeleton
33

44
SUITE = BenchmarkGroup()
55
SUITE["rand"] = @benchmarkable rand(10)

docs/make.jl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
using ITensorPkgSkeleton: ITensorPkgSkeleton
21
using Documenter: Documenter, DocMeta, deploydocs, makedocs
2+
using ITensorPkgSkeleton: ITensorPkgSkeleton
33

44
DocMeta.setdocmeta!(
55
ITensorPkgSkeleton, :DocTestSetup, :(using ITensorPkgSkeleton); recursive = true
@@ -14,11 +14,12 @@ makedocs(;
1414
format = Documenter.HTML(;
1515
canonical = "https://itensor.github.io/ITensorPkgSkeleton.jl",
1616
edit_link = "main",
17-
assets = ["assets/favicon.ico", "assets/extras.css"],
17+
assets = ["assets/favicon.ico", "assets/extras.css"]
1818
),
19-
pages = ["Home" => "index.md", "Reference" => "reference.md"],
19+
pages = ["Home" => "index.md", "Reference" => "reference.md"]
2020
)
2121

2222
deploydocs(;
23-
repo = "github.com/ITensor/ITensorPkgSkeleton.jl", devbranch = "main", push_preview = true
23+
repo = "github.com/ITensor/ITensorPkgSkeleton.jl", devbranch = "main",
24+
push_preview = true
2425
)

docs/make_index.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
using Literate: Literate
21
using ITensorPkgSkeleton: ITensorPkgSkeleton
2+
using Literate: Literate
33

44
function ccq_logo(content)
55
include_ccq_logo = """
@@ -17,5 +17,5 @@ Literate.markdown(
1717
joinpath(pkgdir(ITensorPkgSkeleton), "docs", "src");
1818
flavor = Literate.DocumenterFlavor(),
1919
name = "index",
20-
postprocess = ccq_logo,
20+
postprocess = ccq_logo
2121
)

docs/make_readme.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
using Literate: Literate
21
using ITensorPkgSkeleton: ITensorPkgSkeleton
2+
using Literate: Literate
33

44
function ccq_logo(content)
55
include_ccq_logo = """
@@ -17,5 +17,5 @@ Literate.markdown(
1717
joinpath(pkgdir(ITensorPkgSkeleton));
1818
flavor = Literate.CommonMarkFlavor(),
1919
name = "README",
20-
postprocess = ccq_logo,
20+
postprocess = ccq_logo
2121
)

0 commit comments

Comments
 (0)