Skip to content
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

Docs: Various improvements #20

Merged
merged 4 commits into from
Jun 10, 2024
Merged

Docs: Various improvements #20

merged 4 commits into from
Jun 10, 2024

Conversation

Seluj78
Copy link
Owner

@Seluj78 Seluj78 commented Jun 10, 2024

Fixes #14
Fixes #13
Fixes #7

Summary by CodeRabbit

  • Documentation

    • Introduced a Code of Conduct to outline expected behavior within the project community.
    • Updated contributing guidelines to provide detailed instructions for reporting bugs, suggesting enhancements, making code contributions, and more.
  • New Features

    • Added GitHub badges to the README for commit activity, release commits, workflow statuses, and license information.

@Seluj78 Seluj78 added documentation Improvements or additions to documentation enhancement New feature or request labels Jun 10, 2024
@Seluj78 Seluj78 added this to the v1 milestone Jun 10, 2024
@Seluj78 Seluj78 self-assigned this Jun 10, 2024
Copy link
Contributor

coderabbitai bot commented Jun 10, 2024

Walkthrough

The recent updates to the Flask-Utils project include the addition of a detailed Code of Conduct, comprehensive contributing guidelines, and several GitHub-related badges in the README file. These changes aim to foster a positive community environment, guide contributors effectively, and enhance the project's visibility and professionalism on GitHub.

Changes

File Change Summary
CODE_OF_CONDUCT.md Introduced a new Code of Conduct outlining community standards, responsibilities, and enforcement guidelines.
CONTRIBUTING.md Updated to provide detailed guidelines for contributing, including code of conduct, reporting bugs, and style guides.
README.md Added GitHub badges for commit activity, release commits, workflow statuses, and license information.

Assessment against linked issues

Objective Addressed Explanation
Add badges (#7)

Poem

In the land of Flask, a change was made,
With badges and codes, new paths were laid.
Contributors guided, with care and cheer,
A welcoming community, far and near.
GitHub badges now shine, like stars in the night,
Flask-Utils grows, in the soft moonlight. 🌟


Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@Seluj78 Seluj78 merged commit 4472db6 into main Jun 10, 2024
15 of 16 checks passed
@Seluj78 Seluj78 deleted the enhancements/various-chores branch June 10, 2024 13:47
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 5

Outside diff range and nitpick comments (2)
README.md (2)

8-14: Consider removing or updating the TODO comment related to PyPI badges once the project is ready for release on PyPI.


Line range hint 68-68: Ensure fenced code blocks are surrounded by blank lines for proper Markdown formatting.

+ 
+ 
+ 
+ 

Also applies to: 73-73, 78-78, 85-85

Tools
LanguageTool

[style] ~1-~1: Using many exclamation marks might seem excessive (in this case: 5 exclamation marks for a text that’s 990 characters long) (EN_EXCESSIVE_EXCLAMATION)
Context: Documentation Status GitHub commit activity GitHub commits since latest release GitHub Actions Workflow Status ![GitHub Actions Workflow Status](https:/...

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between d2cd876 and 75b5102.

Files selected for processing (3)
  • CODE_OF_CONDUCT.md (1 hunks)
  • CONTRIBUTING.md (1 hunks)
  • README.md (1 hunks)
Additional context used
LanguageTool
README.md

[style] ~1-~1: Using many exclamation marks might seem excessive (in this case: 5 exclamation marks for a text that’s 990 characters long) (EN_EXCESSIVE_EXCLAMATION)
Context: Documentation Status GitHub commit activity GitHub commits since latest release GitHub Actions Workflow Status ![GitHub Actions Workflow Status](https:/...


[misspelling] ~84-~84: This word is normally spelled as one. (EN_COMPOUNDS_MULTI_THREADED)
Context: ...ests bash tox OR Run the tests multi-threaded bash tox -p

CODE_OF_CONDUCT.md

[style] ~29-~29: Try using a synonym here to strengthen your wording. (COMMENT_REMARK)
Context: ...ces * Trolling, insulting or derogatory comments, and personal or political attacks * Pu...

CONTRIBUTING.md

[style] ~8-~8: As an alternative to the over-used intensifier ‘very’, consider replacing this phrase. (EN_WEAK_ADJECTIVE)
Context: ...ur appreciation, which we would also be very happy about: > - Star the project > - Tweet a...


[uncategorized] ~66-~66: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ...j78/flask-utilsissues?q=label%3Abug). - Also make sure to search the internet (inclu...


[style] ~66-~66: This phrase is redundant. Consider using “outside”. (OUTSIDE_OF)
Context: ...cluding Stack Overflow) to see if users outside of the GitHub community have discussed the...


[typographical] ~71-~71: Consider adding a comma after ‘Possibly’ for more clarity. (RB_LY_COMMA)
Context: ..., depending on what seems relevant. - Possibly your input and the output - Can you r...


[typographical] ~71-~71: It appears that a comma is missing. (COMMA_BEFORE_QUESTION_WITH_MD)
Context: .... - Possibly your input and the output - Can you reliably reproduce the issue? And c...


[uncategorized] ~77-~77: A comma may be missing after the conjunctive/linking adverb ‘Instead’. (SENT_START_CONJUNCTIVE_LINKING_ADVERB_COMMA)
Context: ... issue tracker, or elsewhere in public. Instead sensitive bugs must be sent by email to...


[style] ~82-~82: The phrase ‘talk about’ can be informal. To elevate your writing, consider using a more professional alternative. (TALK_ABOUT_DISCUSS)
Context: ...r it is a bug or not, we ask you not to talk about a bug yet and not to label the issue.) ...


[style] ~91-~91: As a shorter alternative for ‘able to’, consider using “can”. (BE_ABLE_TO)
Context: ...ntil they are reproduced. - If the team is able to reproduce the issue, it will be marked ...


[style] ~98-~98: Consider using a different adverb to strengthen your wording. (COMPLETELY_ENTIRELY)
Context: ...suggestion for Flask-Utils, **including completely new features and minor improvements to ...


[typographical] ~115-~115: It appears that a comma is missing. (DURING_THAT_TIME_COMMA)
Context: ...ected to see instead** and why. At this point you can also tell which alternatives do...


[style] ~122-~122: Often, this adverbial phrase is redundant. Consider using an alternative. (FIRST_OF_ALL)
Context: ... --> ### Your First Code Contribution First of all, you'll need to fork the project. Head ...


[uncategorized] ~177-~177: Loose punctuation mark. (UNLIKELY_OPENING_PUNCTUATION)
Context: ...ple, be one of the following: - Tests: for changes to the test suite - Docs:...

Markdownlint
README.md

68-68: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines


73-73: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines


78-78: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines


85-85: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines

CONTRIBUTING.md

28-28: Expected: 1; Actual: 2 (MD012, no-multiple-blanks)
Multiple consecutive blank lines


36-36: Expected: 1; Actual: 2 (MD012, no-multiple-blanks)
Multiple consecutive blank lines


95-95: Expected: 1; Actual: 2 (MD012, no-multiple-blanks)
Multiple consecutive blank lines


53-53: Expected: 1; Actual: 0; Below (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


166-166: Expected: 1; Actual: 0; Below (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


167-167: Expected: 1; Actual: 0; Above (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


188-188: Expected: 1; Actual: 0; Below (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


129-129: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines


131-131: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines


9-9: null (MD032, blanks-around-lists)
Lists should be surrounded by blank lines


123-123: null (MD034, no-bare-urls)
Bare URL used


171-171: null (MD040, fenced-code-language)
Fenced code blocks should have a language specified

Additional comments not posted (1)
README.md (1)

2-6: Great addition of GitHub badges to enhance project visibility.


* The use of sexualized language or imagery, and sexual attention or
advances
* Trolling, insulting or derogatory comments, and personal or political attacks
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using stronger language to describe unacceptable behaviors to emphasize the seriousness.

- * Trolling, insulting or derogatory comments, and personal or political attacks
+ * Engaging in trolling, making insulting or derogatory comments, and initiating personal or political attacks
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
* Trolling, insulting or derogatory comments, and personal or political attacks
* Engaging in trolling, making insulting or derogatory comments, and initiating personal or political attacks
Tools
LanguageTool

[style] ~29-~29: Try using a synonym here to strengthen your wording. (COMMENT_REMARK)
Context: ...ces * Trolling, insulting or derogatory comments, and personal or political attacks * Pu...


You can find the rules [here](https://github.com/Seluj78/flask-utils/blob/main/scripts/lint-commit.sh) but the gist of it is:

```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Specify the language for fenced code blocks to improve readability and syntax highlighting.

171~ ```bash
Tools
Markdownlint

171-171: null (MD040, fenced-code-language)
Fenced code blocks should have a language specified


```bash
git clone https://github.com/Seluj78/flask-utils.git
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add blank lines around fenced code blocks for proper Markdown formatting.

+ 
+ 

Also applies to: 131-131

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
```
```
Tools
Markdownlint

129-129: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines

- [Commit Messages](#commit-messages)
- [Join The Project Team](#join-the-project-team)


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove extra blank lines to maintain consistency and cleanliness in the document.

- 
- 
- 

Also applies to: 36-36, 95-95

Committable suggestion was skipped due to low confidence.

Tools
Markdownlint

28-28: Expected: 1; Actual: 2 (MD012, no-multiple-blanks)
Multiple consecutive blank lines


## I Want To Contribute

> ### Legal Notice <!-- omit in toc -->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure headings are surrounded by blank lines to adhere to Markdown best practices.

+ 
+ 
+ 
+ 
+ 

Also applies to: 166-166, 167-167, 188-188

Committable suggestion was skipped due to low confidence.

Tools
Markdownlint

53-53: Expected: 1; Actual: 0; Below (MD022, blanks-around-headings)
Headings should be surrounded by blank lines

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add CODE_OF_CONDUCT.md Add CONTRIBUTING.md Add badges
1 participant