-
-
Notifications
You must be signed in to change notification settings - Fork 131
Library workflow refactor #3928
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
andrew-codechimp
merged 19 commits into
andrew-codechimp:main
from
EVWorth:library-workflow-refactor
Nov 2, 2025
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
d324be6
add .vscode/settings.json defaults
EVWorth cd23def
rename library file for clarity
EVWorth ab275ff
add pytablewriter to uv and retire requirements.txt
EVWorth efb4bf2
update json_librarian.yml to use uv
EVWorth 234552e
update file reference from .yml -> .yaml
EVWorth 99f420c
rename .yml files -> .yaml files
EVWorth 21c75ab
update remaining .yml references to .yaml
EVWorth c079e1c
swapped to using an image with uv buildin to streamline workflow
EVWorth 40c9d96
update deploy_docs to use uv and use the uv container to streamline w…
EVWorth 2a96ae7
added mkdocs-material to project
EVWorth 3e30550
update dependabot not to monitor mkdocs-material and pytablewriter
EVWorth a4bed51
switch image to ghcr.io/astral-sh/uv:latest to hopefully have build-e…
EVWorth 1c453a7
revert back to using base image with setup-uv; added method to only a…
EVWorth 8d10f7f
updated lint script to properly use uv
EVWorth c60db41
Rename issue templates
andrew-codechimp 6f6bd1c
Add back sorting of json file
andrew-codechimp 34c9455
move device sorting into python script
EVWorth 90a8c52
remove unneeded import
EVWorth f189b70
refactor regenerate_device_list()
EVWorth 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 was deleted.
Oops, something went wrong.
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,31 @@ | ||
| name: Deploy docs | ||
| on: | ||
| push: | ||
| paths: | ||
| - 'mkdocs.yaml' | ||
| - 'docs/**' | ||
| branches: | ||
| - main | ||
| permissions: | ||
| contents: write | ||
| jobs: | ||
| deploy_docs: | ||
| name: Deploy docs | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - uses: actions/cache@v4 | ||
| with: | ||
| key: mkdocs-material-${{ runner.os }}-${{ hashFiles('mkdocs.yaml', 'pyproject.toml', 'uv.lock') }} | ||
| path: .cache | ||
| restore-keys: | | ||
| mkdocs-material- | ||
|
|
||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v7 | ||
|
|
||
| - name: Deploy documentation | ||
| run: | | ||
| uv run --only-group docs mkdocs gh-deploy --force | ||
This file was deleted.
Oops, something went wrong.
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,31 @@ | ||
| name: JSON Library Sorter and Doc Gen | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| push: | ||
| branches: | ||
| - "main" | ||
| paths: | ||
| - "library/library.json" | ||
| - ".github/workflows/json_librarian.yaml" | ||
| - ".github/workflows/scripts/library_doc/**" | ||
|
EVWorth marked this conversation as resolved.
|
||
|
|
||
| jobs: | ||
| librarian: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v7 | ||
|
|
||
| - name: Sort and Update Library Files | ||
| run: | | ||
| uv run --only-group library .github/scripts/library_doc/update_library_files.py | ||
|
|
||
| - name: Commit any changes | ||
| uses: stefanzweifel/git-auto-commit-action@v7 | ||
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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
File renamed without changes.
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 |
|---|---|---|
| @@ -1,6 +1,10 @@ | ||
| { | ||
| "[python]": { | ||
| "editor.defaultFormatter": "ms-python.black-formatter" | ||
| "git.autofetch": true, | ||
| "python.createEnvironment.trigger": "off", | ||
| "editor.defaultFormatter": "charliermarsh.ruff", | ||
| "editor.formatOnSave": true, | ||
| "editor.codeActionsOnSave": { | ||
| "source.organizeImports": "always", | ||
| }, | ||
| "python.formatting.provider": "none" | ||
| "python.terminal.activateEnvInCurrentTerminal": true, | ||
| } |
File renamed without changes.
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 |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| #!/usr/bin/env bash | ||
| set -euo pipefail | ||
|
|
||
| set -e | ||
|
|
||
| # Move to project root | ||
| cd "$(dirname "$0")/.." | ||
|
|
||
| ruff check . --fix | ||
| uv run ruff check . --fix |
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.
Uh oh!
There was an error while loading. Please reload this page.