Introduced the Ruff formatter and Github actions to check formatting issues#727
Open
jprakash-db wants to merge 1 commit intomainfrom
Open
Introduced the Ruff formatter and Github actions to check formatting issues#727jprakash-db wants to merge 1 commit intomainfrom
jprakash-db wants to merge 1 commit intomainfrom
Conversation
|
Thanks for your contribution! To satisfy the DCO policy in our contributing guide every commit message must include a sign-off message. One or more of your commits is missing this message. You can reword previous commit messages with an interactive rebase ( |
There was a problem hiding this comment.
Pull request overview
This pull request introduces the Ruff formatter as a replacement for Black and adds GitHub Actions to automatically check for formatting issues in the codebase.
Changes:
- Replaced Black formatter with Ruff formatter across the entire codebase
- Updated dependency management to remove Black and add Ruff
- Modified CI/CD workflow to use Ruff for format checking
- Applied Ruff formatting to all Python files (tests, source code, scripts, and examples)
Reviewed changes
Copilot reviewed 62 out of 63 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| pyproject.toml | Removed Black dependency, added Ruff ^0.14.13, replaced [tool.black] with [tool.ruff.format] configuration |
| poetry.lock | Updated lock file to reflect removal of Black (and its dependencies: click, pathspec) and addition of Ruff |
| .github/workflows/code-quality-checks.yml | Renamed job from "check-linting" to "code-format-check", updated command from black --check to ruff format --check |
| tests/unit/*.py | Applied Ruff formatting: multi-line parameter formatting, removed trailing whitespace, adjusted blank lines |
| tests/e2e/*.py | Applied Ruff formatting: consistent string quotes, multi-line call formatting, blank line adjustments |
| src/databricks/sql/*.py | Applied Ruff formatting: line continuation improvements, consistent formatting |
| scripts/dependency_manager.py | Applied Ruff formatting: string quote consistency, blank line adjustments |
| examples/*.py | Applied Ruff formatting: removed trailing blank lines, consistent formatting |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What type of PR is this?
Introduced the Ruff formatter and Github actions to check formatting issues