-
Notifications
You must be signed in to change notification settings - Fork 24
Add pre-commit configuration for code formatting tools #82
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
✅ Deploy Preview for splitwizer canceled.
|
|
Caution Review failedThe pull request is closed. WalkthroughThis update introduces a Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (29)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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 (
|
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
🧹 Nitpick comments (1)
.pre-commit-config.yaml (1)
1-15: Terminate file with a newlineYAML-lint flags the missing trailing newline. Adding one keeps linters quiet and follows POSIX text-file conventions.
- id: autopep8 +
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.pre-commit-config.yaml(1 hunks)
🧰 Additional context used
🪛 YAMLlint (1.37.1)
.pre-commit-config.yaml
[error] 15-15: no new line character at the end of file
(new-line-at-end-of-file)
🔇 Additional comments (1)
.pre-commit-config.yaml (1)
12-15: Re-evaluate the need for autopep8; it overlaps with BlackBlack already enforces a complete formatting style. Running autopep8 afterwards adds no value and can even undo Black’s choices, causing pointless churn in commits. Consider removing this hook (or disabling it for Python files) unless you have a very specific use-case that Black cannot cover.
Introduce a pre-commit configuration that integrates Black, isort, and autopep8 for consistent code formatting.
Summary by CodeRabbit