-
Notifications
You must be signed in to change notification settings - Fork 2
Feature/add precommit hooks #23
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
13 commits
Select commit
Hold shift + click to select a range
a5b25cb
Add ruff support and ruff pre-commit hook.
laurejt 2ba29bc
Add yamlfmt pre-commit hook
laurejt af87747
Add codespell pre-commit hook
laurejt 26ef906
Added some file check hooks
laurejt f05d9a7
Add github action validator
laurejt 90c4c8c
Removed ability to manually run publishig action
laurejt 921d844
Fix unit test GitHub Action workflow
laurejt 30ec2d8
Take 2 at fixing unit test github action workflow
laurejt ebe0fbc
Take 3
laurejt c5ca64d
Take 4
laurejt e92308d
Expect to still fail
laurejt 9ab971a
Debugging
laurejt 659a6ac
Identified 3.9 compatibility issue
laurejt 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
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
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,55 @@ | ||
| # This config file specifies which pre-commit hooks to run. | ||
| # | ||
| # To set up, run `pre-commit install` | ||
| # To run all hooks manually, run `pre-commit run --all-files` | ||
| repos: | ||
| # Ruff Python linter and formatter (configs in pyproject.toml) | ||
| - repo: https://github.com/astral-sh/ruff-pre-commit | ||
| rev: v0.12.7 | ||
| hooks: | ||
| # Run the linter | ||
| - id: ruff-check | ||
| args: [--fix, --show-fixes] # enable lint fixes | ||
| # Run the formatter | ||
| - id: ruff-format | ||
| # yamlfmt for formatting YAML files | ||
| - repo: https://github.com/google/yamlfmt | ||
| rev: v0.17.2 | ||
| hooks: | ||
| - id: yamlfmt | ||
| # Codespell for spell checking | ||
| - repo: https://github.com/codespell-project/codespell | ||
| rev: v2.4.1 | ||
| hooks: | ||
| - id: codespell | ||
| additional_dependencies: | ||
| - tomli | ||
| exclude_types: ["css", "html", "javascript", "json"] | ||
| # Some out-of-the-box file checks | ||
| - repo: https://github.com/pre-commit/pre-commit-hooks | ||
| rev: v4.5.0 | ||
| hooks: | ||
| # Check for files with merge conflict strings | ||
| - id: check-merge-conflict | ||
| # Verify syntax of TOML files | ||
| - id: check-toml | ||
| # Verify syntax of YAML files | ||
| - id: check-yaml | ||
| args: [--unsafe] | ||
| # Verifies that test files begin with test_ | ||
| - id: name-tests-test | ||
| args: [--pytest-test-first] | ||
| # Removes trailing whitespace from all files | ||
| - id: trailing-whitespace | ||
| exclude: "docs/" | ||
| # Check uv.lock file is up to date | ||
| - repo: https://github.com/astral-sh/uv-pre-commit | ||
| # uv version. | ||
| rev: 0.8.6 | ||
| hooks: | ||
| - id: uv-lock | ||
| # Validate GitHub Actions workflow files | ||
| - repo: https://github.com/mpalmer/action-validator | ||
| rev: v0.8.0 | ||
| hooks: | ||
| - id: action-validator |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
These versions look old. I assume you are holding off on updating, and this PR is solely reformatting? (Want to make sure we're tracking that work somewhere)
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.
Yes, but I'll make a new issue on updating this workflow.