-
Notifications
You must be signed in to change notification settings - Fork 70
Add CI checks for formatting + clean up CI #217
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 5 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
58cb890
Format files with latest ruff
strickvl a029351
Add .claude/ to gitignore
strickvl 0a17913
Fix unused variables and add notebook exclusion to format script
strickvl a02a30b
remove unused CI workflows
strickvl ec67513
Add code formatting CI workflow
strickvl 50c338a
Fix workflow_call trigger in code-formatting.yml
strickvl 9f2a4f3
Update llm-complete-guide/utils/llm_utils.py
strickvl 0ccb53e
Update magic-photobooth/frontend.py
strickvl e7d80c2
small redundancy fix
strickvl 54c7910
Merge branch 'ci/force-formatting-gh-actions' of github.com:zenml-io/…
strickvl c1e61f6
Update CI to install latest ruff version and display version in logs
strickvl 50ad613
Update README and CONTRIBUTING.md with formatting requirements
strickvl 08adf8d
Update CI
strickvl 7776d1f
Formatting
strickvl 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,42 @@ | ||
| name: Code Formatting | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize] | ||
| push: | ||
| branches: | ||
| - main | ||
|
|
||
| jobs: | ||
| formatting-check: | ||
| name: Code Formatting Check | ||
| runs-on: ubuntu-latest | ||
| if: github.event.pull_request.draft == false | ||
| env: | ||
| ZENML_DEBUG: 1 | ||
| ZENML_ANALYTICS_OPT_IN: false | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v3 | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: '3.9' | ||
|
|
||
| - name: Install ruff | ||
| run: pip install ruff | ||
|
|
||
| - name: Run formatting script | ||
| run: bash scripts/format.sh | ||
|
|
||
| - name: Check for changes | ||
| id: git-check | ||
| run: | | ||
| git diff --exit-code || echo "changes=true" >> $GITHUB_OUTPUT | ||
|
|
||
| - name: Fail if changes were made | ||
| if: steps.git-check.outputs.changes == 'true' | ||
| run: | | ||
| echo "::error::Formatting check failed. Please run 'scripts/format.sh' locally and commit the changes." | ||
| exit 1 |
This file was deleted.
Oops, something went wrong.
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 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 |
|---|---|---|
|
|
@@ -167,3 +167,6 @@ finetuned-snowflake-arctic-embed-m-v1.5/ | |
|
|
||
| # ollama ignores | ||
| nohup.out | ||
|
|
||
| # Claude | ||
| .claude/ | ||
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
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.
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.