-
Notifications
You must be signed in to change notification settings - Fork 7
pre-commit Github action #67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
88cecaa
f33d600
bc3f969
1c09d11
77f61bd
7bd2825
ee4c1f4
c3d86e6
ddd483e
5ed73f9
68e0706
52e86f1
bc77c0c
746cbc5
ad6b9ec
ffef34f
8850e95
bda9f76
4163462
2bc96e9
523961d
dd29741
8f01021
fbede92
86cad04
dfc0b6b
395a5b4
58392db
cc89871
323b399
be80729
ac0bca7
7c03313
e2a7d73
845269b
9944745
729dd12
5a15140
27765d1
4ca9137
cf97464
d9f2599
1ab9b7b
329b904
fec7666
1ae8914
7a873e5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| name: gridkit-bot pre-commit | ||
|
|
||
| # Won't run on develop/main directly | ||
| on: [pull_request] | ||
|
|
||
| jobs: | ||
| pre-commit: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| with: | ||
| ref: ${{ github.event.pull_request.head.ref }} | ||
| - uses: actions/setup-python@v5.4.0 | ||
| - uses: pre-commit/action@v3.0.1 | ||
| - uses: EndBug/add-and-commit@v9.1.4 | ||
| # Only need to try and commit if the action failed | ||
| if: failure() | ||
| with: | ||
| fetch: false | ||
| committer_name: GitHub Actions | ||
| committer_email: actions@github.com | ||
| message: Apply pre-commmit fixes | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,4 +4,4 @@ | |
| .vscode/ | ||
| *.DS_Store | ||
| build/ | ||
| *.DS_Store | ||
| *.DS_Store | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| repos: | ||
| - repo: https://github.com/pre-commit/mirrors-clang-format | ||
| rev: v19.1.7 | ||
| hooks: | ||
| - id: clang-format | ||
| - repo: https://github.com/pre-commit/pre-commit-hooks | ||
| rev: v5.0.0 | ||
| hooks: | ||
| - id: check-toml | ||
| - id: forbid-new-submodules | ||
| - id: end-of-file-fixer | ||
| - id: check-yaml | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm curious - will these
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correct, the check will work as you describe. You can see what it's trying yo do in CI (e.g. https://github.com/ORNL/GridKit/actions/runs/13594004211/job/38006645346#step:4:154). These are mostly legacy checks. We can remove anything we don't need. |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should pick a version that we expect people to install with Enzyme, like v15 or so.