-
-
Notifications
You must be signed in to change notification settings - Fork 1
Set up pre-commit (w/ Zizmor and misc.), Dependabot and tidy up GH workflows
#38
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
0ab85f7
Set up `pre-commit` (w/ Zizmor and misc.), Dependabot and tidy up wor…
StanFromIreland 2fe4e69
Add back `read` permissions, don't run it twice on PRs
StanFromIreland 59fc5d2
Keep it locked at 3.14 (for now)
StanFromIreland 1b705ff
Workaround for Hugo
StanFromIreland 5f1b352
Workaround for Hugo on `lint.yml` too, it works!
StanFromIreland 5d3e1c3
Bump Actions
StanFromIreland 3425a9b
Rework dependabot config
StanFromIreland c01705e
Revert that workaround
StanFromIreland 173dbde
Merge branch 'main' into lint-it-all
StanFromIreland 597e831
Make linter happy with license
StanFromIreland 281c298
Update .github/workflows/tests.yml
StanFromIreland 6f4c81a
Merge remote-tracking branch 'origin/main' into lint-it-all
StanFromIreland File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: "github-actions" | ||
| directory: "/" | ||
| schedule: | ||
| interval: "quarterly" | ||
| groups: | ||
| actions: | ||
| patterns: | ||
| - "*" | ||
| cooldown: | ||
| # Actions should still be inspected manually, as currently this cooldown | ||
| # can be bypassed: https://github.com/dependabot/dependabot-core/issues/13078 | ||
| default-days: 14 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| name: Lint | ||
|
|
||
| on: [push, pull_request, workflow_dispatch] | ||
|
|
||
| env: | ||
| FORCE_COLOR: 1 | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| lint: | ||
| name: Lint | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: j178/prek-action@0bb87d7f00b0c99306c8bcb8b8beba1eb581c037 # v1.1.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| rules: | ||
| secrets-outside-env: | ||
| ignore: | ||
| - cron.yml | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| repos: | ||
| - repo: https://github.com/astral-sh/ruff-pre-commit | ||
| rev: e05c5c0818279e5ac248ac9e954431ba58865e61 # frozen: v0.15.7 | ||
| hooks: | ||
| - id: ruff-check | ||
| name: Run Ruff (lint) | ||
| args: [--exit-non-zero-on-fix] | ||
| - id: ruff-format | ||
| name: Run Ruff (format) | ||
| args: [--exit-non-zero-on-fix] | ||
|
|
||
| - repo: https://github.com/pre-commit/pre-commit-hooks | ||
| rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0 | ||
| hooks: | ||
| - id: check-case-conflict | ||
| - id: check-merge-conflict | ||
| - id: end-of-file-fixer | ||
| - id: mixed-line-ending | ||
| args: [--fix=auto] | ||
| - id: trailing-whitespace | ||
|
|
||
| - repo: https://github.com/rhysd/actionlint | ||
| rev: 393031adb9afb225ee52ae2ccd7a5af5525e03e8 # frozen: v1.7.11 | ||
| hooks: | ||
| - id: actionlint | ||
|
|
||
| - repo: https://github.com/zizmorcore/zizmor-pre-commit | ||
| rev: b546b77c44c466a54a42af5499dcc0dcc1a3193f # frozen: v1.22.0 | ||
| hooks: | ||
| - id: zizmor | ||
|
|
||
| - repo: meta | ||
| hooks: | ||
| - id: check-hooks-apply | ||
| - id: check-useless-excludes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 3.14 | ||
| 3.14 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.