Skip to content

Commit 24413c7

Browse files
authored
Update BestieTemplate 0.16 (#217)
* Update BestieTemplate 0.16 * fix test * fix linter
1 parent 2d2aaf6 commit 24413c7

31 files changed

+513
-353
lines changed

.copier-answers.yml

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,42 @@
11
# Changes here will be overwritten by Copier
22
AddAllcontributors: true
3+
AddCitationCFF: true
34
AddCodeOfConduct: true
4-
AddCopierCI: false
5+
AddCompatHelperCI: true
6+
AddContributionDocs: true
7+
AddCopierCI: true
8+
AddDependabot: true
9+
AddDocs: true
10+
AddDocsCI: true
11+
AddFormatterAndLinterConfigFiles: true
12+
AddGitHubPRTemplate: true
513
AddGitHubTemplates: true
14+
AddLintCI: true
15+
AddLychee: true
616
AddMacToCI: true
717
AddPrecommit: true
18+
AddTagBotCI: true
19+
AddTestCI: true
820
AddWinToCI: true
9-
AnswerStrategy: ask
10-
AuthorEmail: [email protected]
11-
AuthorName: Tangi Migot
12-
Indentation: 2
13-
JuliaMinVersion: '1.6'
21+
Authors: Tangi Migot <[email protected]>
22+
AutoIncludeTests: true
23+
CheckExplicitImports: true
24+
CodeOfConductContact: [email protected]
25+
ConfigIndentation: 2
26+
ExplicitImportsChecklist: exclude_all_qualified_accesses_are_public
27+
JuliaIndentation: 2
28+
JuliaMinCIVersion: lts
29+
JuliaMinVersion: lts
1430
License: MPL-2.0
31+
LicenseCopyrightHolders: Tangi Migot
32+
MarkdownIndentation: 2
1533
PackageName: JSOSuite
1634
PackageOwner: JuliaSmoothOptimizers
1735
PackageUUID: ed6ae0be-a024-11e9-2788-05dbf8cd15d9
1836
RunJuliaNightlyOnCI: false
19-
SimplifiedPRTest: true
37+
StrategyConfirmIncluded: true
38+
StrategyLevel: 3
39+
StrategyReviewExcluded: false
2040
UseCirrusCI: true
21-
_commit: v0.7.2
41+
_commit: v0.16.2
2242
_src_path: https://github.com/JuliaBesties/BestieTemplate.jl

.editorconfig

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ root = true
55
end_of_line = lf
66
insert_final_newline = true
77
charset = utf-8
8-
indent_size = 2
98
indent_style = space
109
trim_trailing_whitespace = true
10+
11+
[*.jl]
12+
indent_size = 2
13+
14+
[*.md]
15+
indent_size = 2
16+
17+
[*.{yml,toml,json}]
18+
indent_size = 2

.github/ISSUE_TEMPLATE/10-bug-report.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ body:
1313
- There is not an [existing issue](https://github.com/JuliaSmoothOptimizers/JSOSuite.jl/issues) with the same question
1414
- You have read the [contributing guide](https://JuliaSmoothOptimizers.github.io/JSOSuite.jl/dev/90-contributing/)
1515
- You are following the [code of conduct](https://github.com/JuliaSmoothOptimizers/JSOSuite.jl/blob/main/CODE_OF_CONDUCT.md)
16-
1716
The form below should help you in filling out this issue.
1817
- type: textarea
1918
id: description

.github/ISSUE_TEMPLATE/20-feature-request.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ body:
1111
- There is not an [existing issue](https://github.com/JuliaSmoothOptimizers/JSOSuite.jl/issues) with the same question
1212
- You have read the [contributing guide](https://JuliaSmoothOptimizers.github.io/JSOSuite.jl/dev/90-contributing/)
1313
- You are following the [code of conduct](https://github.com/JuliaSmoothOptimizers/JSOSuite.jl/blob/main/CODE_OF_CONDUCT.md)
14-
1514
The form below should help you in filling out this issue.
1615
- type: textarea
1716
id: description

.github/ISSUE_TEMPLATE/30-usage.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ body:
1313
- There is not an [existing issue](https://github.com/JuliaSmoothOptimizers/JSOSuite.jl/issues) with the same question
1414
- You have read the [contributing guide](https://JuliaSmoothOptimizers.github.io/JSOSuite.jl/dev/90-contributing/)
1515
- You are following the [code of conduct](https://github.com/JuliaSmoothOptimizers/JSOSuite.jl/blob/main/CODE_OF_CONDUCT.md)
16-
1716
The form below should help you in filling out this issue.
1817
- type: textarea
1918
id: description

.github/ISSUE_TEMPLATE/99-general.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ body:
1111
- There is not an [existing issue](https://github.com/JuliaSmoothOptimizers/JSOSuite.jl/issues) with the same question
1212
- You have read the [contributing guide](https://JuliaSmoothOptimizers.github.io/JSOSuite.jl/dev/90-contributing/)
1313
- You are following the [code of conduct](https://github.com/JuliaSmoothOptimizers/JSOSuite.jl/blob/main/CODE_OF_CONDUCT.md)
14-
1514
The form below should help you in filling out this issue.
1615
- type: textarea
1716
id: description

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!--
22
Thanks for making a pull request to JSOSuite.jl.
33
We have added this PR template to help you help us.
4-
Make sure to read the contributing guidelines and abide to the code of conduct.
4+
Make sure to read the contributing guidelines and abide by the code of conduct.
55
See the comments below, fill the required fields, and check the items.
66
-->
77

.github/workflows/Copier.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Copier Update
2+
3+
on:
4+
schedule:
5+
- cron: 0 7 1/7 * * # Every 7 days at 7:00 UTC
6+
workflow_dispatch:
7+
8+
jobs:
9+
Copier:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
token: ${{ secrets.COPIER_PAT }}
15+
- uses: julia-actions/setup-julia@v2
16+
with:
17+
version: "1"
18+
- name: Use Julia cache
19+
uses: julia-actions/cache@v2
20+
- name: Install JuliaFormatter.jl
21+
run: julia -e 'using Pkg; pkg"add JuliaFormatter"'
22+
- name: Hack for setup-python cache # https://github.com/actions/setup-python/issues/807
23+
run: touch requirements.txt
24+
- name: Setup Python
25+
uses: actions/setup-python@v5
26+
with:
27+
cache: 'pip'
28+
python-version: "3.11"
29+
- name: Hack for setup-python cache # https://github.com/actions/setup-python/issues/807
30+
run: rm requirements.txt
31+
- name: Check for update in the template
32+
run: |
33+
pip install copier
34+
copier update -A -o rej
35+
echo -e "Automated changed by Copier.yml workflow\n" > /tmp/body.md
36+
echo -e 'Rejected changes (if any):\n```diff\n' >> /tmp/body.md
37+
find . -name "*.rej" | xargs cat >> /tmp/body.md
38+
find . -name "*.rej" | xargs rm -f
39+
echo -e '```' >> /tmp/body.md
40+
git diff
41+
- name: Run pre-commit to run the formatters
42+
run: |
43+
pip install pre-commit
44+
pre-commit run -a || true # Ignore pre-commit errors
45+
- name: Create Pull Request
46+
id: cpr
47+
uses: peter-evans/create-pull-request@v6
48+
with:
49+
token: ${{ secrets.COPIER_PAT }}
50+
commit-message: ":robot: BestieTemplate.jl update"
51+
title: "[AUTO] BestieTemplate.jl update"
52+
body-path: /tmp/body.md
53+
branch: auto-copier-template-update
54+
delete-branch: true
55+
labels: configuration, automated pr, no changelog
56+
- name: Check outputs
57+
run: |
58+
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
59+
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"

.github/workflows/Docs.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,23 @@ jobs:
3535
version: "1"
3636
- name: Use Julia cache
3737
uses: julia-actions/cache@v2
38-
- run: |
38+
- name: Instantiate environment with development version of the package
39+
run: |
3940
julia --project=docs -e '
4041
using Pkg
4142
Pkg.develop(PackageSpec(path=pwd()))
4243
Pkg.instantiate()'
43-
- run: |
44+
- name: Run doctest
45+
run: |
4446
julia --project=docs -e '
4547
using Documenter: DocMeta, doctest
4648
using JSOSuite
4749
DocMeta.setdocmeta!(JSOSuite, :DocTestSetup, :(using JSOSuite); recursive=true)
4850
doctest(JSOSuite)'
49-
- run: julia --project=docs docs/make.jl
51+
- name: Generate and deploy documentation
52+
run: julia --project=docs docs/make.jl
5053
env:
5154
JULIA_PKG_SERVER: ""
5255
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5356
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
57+
GKSwstype: "100" # https://discourse.julialang.org/t/generation-of-documentation-fails-qt-qpa-xcb-could-not-connect-to-display/60988

.github/workflows/Lint.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,19 @@ jobs:
2626
version: "1"
2727
- name: Use Julia cache
2828
uses: julia-actions/cache@v2
29-
- name: Install JuliaFormatter.jl
30-
run: julia -e 'using Pkg; pkg"add JuliaFormatter"'
29+
- name: Build package (required for ExplicitImports)
30+
uses: julia-actions/julia-buildpkg@v1
31+
- name: Install Julia packages
32+
run: julia -e 'using Pkg; pkg"add ExplicitImports, JuliaFormatter"'
33+
- name: Hack for setup-python cache # https://github.com/actions/setup-python/issues/807
34+
run: touch requirements.txt
3135
- name: Setup Python
3236
uses: actions/setup-python@v5
3337
with:
3438
cache: "pip"
39+
python-version: "3.11"
40+
- name: Hack for setup-python cache # https://github.com/actions/setup-python/issues/807
41+
run: rm requirements.txt
3542
- name: Cache pre-commit
3643
uses: actions/cache@v4
3744
with:
@@ -41,7 +48,6 @@ jobs:
4148
run: pip install pre-commit
4249
- name: Run pre-commit
4350
run: SKIP=no-commit-to-branch pre-commit run -a
44-
4551
link-checker:
4652
name: Link checker
4753
runs-on: ubuntu-latest
@@ -53,3 +59,4 @@ jobs:
5359
uses: lycheeverse/lychee-action@v2
5460
with:
5561
fail: true
62+
args: --config '.lychee.toml' .

0 commit comments

Comments
 (0)