-
Notifications
You must be signed in to change notification settings - Fork 62
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
Conversation
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Fix unused variables across multiple Python files - Fix syntax error in zencoder/test_starcoder_bigcode.py - Exclude Jupyter notebooks from linting checks in format.sh 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Created new GitHub Actions workflow 'code-formatting.yml' that runs the formatting script - Workflow checks if code meets formatting standards and fails if any changes are needed - Updated pull_request.yml to include the new formatting check - Ensures PRs cannot be merged until code passes formatting checks
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.
Pull Request Overview
This PR enhances CI workflows by adding automated formatting checks, removes outdated CI files, and applies consistent code formatting fixes across the codebase.
- Updated
scripts/format.sh
to exclude Jupyter notebooks from linting and introduced a GitHub Actions workflow to enforce formatting - Removed deprecated CI workflows and updated
pull_request.yml
to include the new formatting check - Standardized multiline return type annotations and cleaned up unused variables/imports in various pipeline and utility modules
Reviewed Changes
Copilot reviewed 29 out of 29 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
scripts/format.sh | Exclude *.ipynb in ruff checks |
retail-forecast/pipelines/training_pipeline.py | Normalize multiline return type annotation |
magic-photobooth/modal_run_using_azure_data.py | Normalize return type annotation, discard unused load_data |
magic-photobooth/modal_run.py | Normalize return type annotation |
magic-photobooth/k8s_run.py | Normalize return type annotation |
magic-photobooth/frontend.py | Removed assignment from st.selectbox |
llm-complete-guide/utils/llm_utils.py | Removed unused source-variable logic and query construction |
llm-complete-guide/steps/populate_index.py | Removed unused bucket_ranges list |
llm-complete-guide/steps/hf_dataset_loader.py | Normalize multiline return type annotation |
llm-complete-guide/steps/eval_retrieval.py | Normalize multiline return type annotations |
huggingface-sagemaker/steps/promotion/promote_get_metrics.py | Normalize multiline return type annotation |
huggingface-sagemaker/steps/deploying/huggingface_deployment.py | Adjust multiline assert formatting |
gamesense/steps/log_metadata.py | Remove unused import and replace unused var with discard _ |
databricks-production-qa-demo/steps/deployment/deployment_deploy.py | Normalize multiline return type annotation |
.github/workflows/staging_run_complete_llm.yml | Removed outdated workflow |
.github/workflows/pull_request.yml | Renamed workflow and added code-formatting-check |
.github/workflows/production_run_complete_llm.yml | Removed outdated workflow |
.github/workflows/gpt4_summarizer.yml | Removed outdated workflow |
.github/workflows/code-formatting.yml | Added new formatting CI workflow |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…zenml-projects into ci/force-formatting-gh-actions
@AlexejPenner I removed the CI yaml files as we weren't using them and it was just adding noise. Hope that's ok! |
Code Formatting and CI Improvements
This PR makes several improvements to code quality and CI/CD workflows:
🧹 Code Formatting Fixes
Fixed various code quality issues across the repository:
Removed unused variables (F841) in multiple projects:
Fixed syntax error in zencoder/test_starcoder_bigcode.py
🔧 CI/CD Improvements
Enhanced CI/CD pipeline for better code quality:
📝 Tool Configuration Updates
This PR ensures that future contributions maintain consistent code formatting standards, making the codebase more maintainable and reducing noise in code reviews.
Commit History