-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add flake8 bugbear #22
Conversation
Important Review skippedReview was skipped as selected files did not have any reviewable changes. Files selected but had no reviewable changes (1)
You can disable this status message by setting the WalkthroughThis update enhances the development and continuous integration process for the Changes
Poem
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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Hi there ! Thank you for the PR @Mews ! On the code side, it looks great to me ! 🙌 As for the commits, I would like you to adhere to the guideline (you can use Also I prefer to use rebase instead of merge to update branches. Could you do this and then we'll be able to merge your PR 🔥 |
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: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- .github/workflows/linting.yml (1 hunks)
- requirements-dev.txt (1 hunks)
Files skipped from review due to trivial changes (2)
- .github/workflows/linting.yml
- requirements-dev.txt
Hi, sorry but this is my first time opening a pr and I'm still learning this git stuff so I'm not entirely sure how to fix those. |
Hey no worries, I'm happy to help ! We all had to learn at some point ! So yes that is correct. I personally like my commits to follow a format, which you can find described here. You can also find examples of commit messages following the rules here As for editing a commit, I recommend you search online either how to do an interactive rebase ( Same thing for I am not trying to be rude/lazy by not responding to your questions directly :) The biggest thing you can learn to be a good software engineer is searching yourself ;) Do let me know if you get stuck |
@Seluj78 Also I'm a bit confused about what you said about preferring rebase instead of merge to update branches. Also, I was gonna change the commit messages to the following |
Update: I think I figured out how to do it from this article https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/changing-a-commit-message#commit-has-not-been-pushed-online However, doing |
@Seluj78 |
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: 0
Outside diff range and nitpick comments (1)
README.md (1)
Line range hint
69-69
: Please add blank lines around the fenced code blocks to improve readability and adhere to Markdown best practices.Also applies to: 74-74, 79-79, 86-86
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (6)
- .github/workflows/coverage.yml (1 hunks)
- .github/workflows/linting.yml (1 hunks)
- README.md (1 hunks)
- codecov.yml (1 hunks)
- requirements-dev.txt (1 hunks)
- tox.ini (1 hunks)
Files skipped from review due to trivial changes (3)
- .github/workflows/coverage.yml
- .github/workflows/linting.yml
- codecov.yml
Additional context used
LanguageTool
README.md
[style] ~1-~1: Using many exclamation marks might seem excessive (in this case: 6 exclamation marks for a text that’s 1067 characters long) (EN_EXCESSIVE_EXCLAMATION)
Context: ![GitHub License](https://img.shields.io/...
[misspelling] ~85-~85: This word is normally spelled as one. (EN_COMPOUNDS_MULTI_THREADED)
Context: ...estsbash tox
OR Run the tests multi-threadedbash tox -p
Markdownlint
README.md
69-69: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines
74-74: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines
79-79: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines
86-86: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines
Additional comments not posted (6)
requirements-dev.txt (3)
3-3
: The addition ofcoverage
is appropriate for enhancing code coverage metrics.
5-5
: Includingflake8-bugbear
is a good choice for catching subtle bugs and bad code practices.
10-10
: Addingpytest-cov
is beneficial for generating detailed test coverage reports.tox.ini (2)
15-18
: The configuration of theclean
environment is correctly set up to erase previous coverage data, ensuring accurate coverage reports.
20-27
: The setup of thecoverage
environment for running coverage analysis withpytest
is correctly configured.README.md (1)
7-7
: The addition of the Codecov badge is a good practice, enhancing visibility into the project's code coverage metrics.
That's great ! Indeed, you can do an interactive rebase to reword the commits like you did, which is perfect ! And yes, renaming your latest commit is easier since you can simply do Now as for rebase vs merge, if you look at https://github.com/Seluj78/flask-utils/pull/22/commits and https://github.com/Seluj78/flask-utils/pull/22/files you can see that you have What you need to do it checkout your |
I don't think it did what it was supposed to ngl |
Hmm indeed it does seem to have removed your changes. Do you remember what you did to do it again ? What I would advise you to do is:
|
Yeah I'll just make the branch again :P |
Created this pull request in regards to issue #9
Changes
Summary by CodeRabbit
New Features
Chores
coverage
,flake8-bugbear
, andpytest-cov
.flake8-bugbear
is properly utilized.