-
-
Notifications
You must be signed in to change notification settings - Fork 7
test: add more tests and update pre-commit hook to ruff #211
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
Caution Review failedThe pull request is closed. WalkthroughThis pull request introduces changes to the project's linting configuration and test coverage. The primary modification is replacing the Flake8 linter with Ruff in the Changes
Sequence DiagramsequenceDiagram
participant PreCommit as Pre-commit
participant Linter as Ruff Linter
PreCommit->>Linter: Run linter in fix mode
Linter-->>PreCommit: Return linting results
Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (5)
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #211 +/- ##
===========================================
+ Coverage 97.27% 100.00% +2.72%
===========================================
Files 7 7
Lines 294 290 -4
===========================================
+ Hits 286 290 +4
+ Misses 8 0 -8 ☔ View full report in Codecov by Sentry. |
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.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
.pre-commit-config.yaml
(1 hunks)commit_check/branch.py
(2 hunks)commit_check/commit.py
(1 hunks)tests/branch_test.py
(1 hunks)
✅ Files skipped from review due to trivial changes (2)
- commit_check/branch.py
- commit_check/commit.py
🔇 Additional comments (1)
tests/branch_test.py (1)
126-134
: Well-structured test case!The new test case complements the existing empty checks test and follows the established testing patterns. It effectively verifies the behavior when an empty regex is provided.
|
Summary by CodeRabbit
Release Notes
Linting
Testing
Maintenance