Skip to content

Commit babbf11

Browse files
committed
Merge branch 'main' into pr/penelopeysm/835
2 parents 7498ffe + 08d5708 commit babbf11

46 files changed

Lines changed: 398 additions & 326 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.JuliaFormatter.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
style = "blue"
2-
align_assignment = true
3-
align_struct_field = true
4-
align_conditional = true
5-
align_pair_arrow = true
6-
align_matrix = true
2+
format_docstrings = true
3+
format_markdown = true

.buildkite/pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ steps:
88
agents:
99
queue: "juliagpu"
1010
cuda: "*"
11-
timeout_in_minutes: 60
11+
timeout_in_minutes: 60

.github/workflows/CompatHelper.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ jobs:
4242
env:
4343
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4444
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
45-
# COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }}
45+
# COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }}

.github/workflows/Documentation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ concurrency:
1515
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
1616

1717
jobs:
18-
18+
1919
docs:
2020
name: ${{ matrix.pkg.shortcut }}
2121
runs-on: ubuntu-latest
@@ -33,7 +33,7 @@ jobs:
3333
- name: DifferentiationInterfaceTest
3434
shortcut: DIT
3535
dir: './DifferentiationInterfaceTest'
36-
36+
3737
steps:
3838
- uses: actions/checkout@v4
3939
- uses: julia-actions/setup-julia@v2

.github/workflows/PreCommit.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Pre-Commit
2+
3+
# needed to allow julia-actions/cache to delete old caches that it has created
4+
permissions:
5+
actions: write
6+
contents: read
7+
8+
on:
9+
push:
10+
branches:
11+
- main
12+
tags: ["*"]
13+
pull_request:
14+
types: [opened, reopened, synchronize, ready_for_review]
15+
workflow_dispatch:
16+
17+
jobs:
18+
pre-commit:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: julia-actions/setup-julia@v2
23+
- uses: julia-actions/cache@v2
24+
- run: julia -e 'using Pkg; Pkg.add("JuliaFormatter")'
25+
- uses: astral-sh/setup-uv@v6
26+
- run: uv tool install pre-commit
27+
- run: pre-commit run --all-files --show-diff-on-failure --color always

.github/workflows/Register.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ jobs:
1313
steps:
1414
- uses: julia-actions/RegisterAction@latest
1515
with:
16-
token: ${{ secrets.GITHUB_TOKEN }}
16+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/TagBot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ jobs:
3636
with:
3737
token: ${{ secrets.GITHUB_TOKEN }}
3838
ssh: ${{ secrets.DOCUMENTER_KEY }}
39-
subdir: DifferentiationInterfaceTest
39+
subdir: DifferentiationInterfaceTest

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
*.csv
1212

1313
playground.jl
14-
.vscode
14+
.vscode

.pre-commit-config.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v3.2.0
4+
hooks:
5+
- id: check-yaml
6+
- id: check-added-large-files
7+
- id: check-merge-conflict
8+
- id: no-commit-to-branch
9+
- repo: "https://github.com/domluna/JuliaFormatter.jl"
10+
rev: "v2.1.6" # or whatever the desired release is
11+
hooks:
12+
- id: "julia-formatter"
13+
fail_fast: true

CONTRIBUTING.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@ _Only the two maintainers are allowed to approve and merge pull requests._
99
Feel free to ping them if they do not answer within a week or so.
1010

1111
Apart from the conditions above, this repository follows the [ColPrac](https://github.com/SciML/ColPrac) best practices and [Conventional Commits](https://www.conventionalcommits.org/en/).
12-
Its code is formatted using [JuliaFormatter.jl](https://github.com/domluna/JuliaFormatter.jl) with [BlueStyle](https://github.com/JuliaDiff/BlueStyle) -- please format any modified code before opening a pull request, otherwise CI will fail.
12+
Its code is formatted using [JuliaFormatter.jl](https://github.com/domluna/JuliaFormatter.jl) with [BlueStyle](https://github.com/JuliaDiff/BlueStyle).
13+
As part of continuous integration, a set of formal tests is run using [pre-commit](https://pre-commit.com/).
14+
We invite you to install pre-commit so that these checks are performed locally before you open or update a pull request.
1315
You can refer to the [dev guide](https://juliadiff.org/DifferentiationInterface.jl/DifferentiationInterface/dev/dev_guide/) for details on the package structure and the testing pipeline.

0 commit comments

Comments
 (0)