This repository was archived by the owner on Dec 11, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Add pre-commit check #5
Open
AChenQ
wants to merge
1
commit into
Project-OpenBytes:main
Choose a base branch
from
AChenQ:feature_cli
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| { | ||
| "default": true, | ||
| "header-increment": false, | ||
| "ul-indent": { | ||
| "indent": 4 | ||
| }, | ||
| "line-length": { | ||
| "line_length": 100, | ||
| "code_blocks": false | ||
| }, | ||
| "no-duplicate-header": false, | ||
| "no-trailing-punctuation": false, | ||
| "list-marker-space": false, | ||
| "fenced-code-language": false, | ||
| "code-block-style": { | ||
| "style": "fenced" | ||
| } | ||
| } | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| --- | ||
| default_stages: [commit] | ||
| repos: | ||
| - repo: https://github.com/pre-commit/pre-commit-hooks | ||
| rev: v4.4.0 | ||
| hooks: | ||
| - id: check-added-large-files | ||
| - id: check-case-conflict | ||
| - id: detect-private-key | ||
|
|
||
| - repo: https://github.com/pre-commit/mirrors-prettier | ||
| rev: v2.7.1 | ||
| hooks: | ||
| - id: prettier | ||
| types_or: [markdown, json] | ||
| args: ["--print-width=100", "--tab-width=4"] | ||
| - id: prettier | ||
| name: prettier-yaml | ||
| types: [yaml] | ||
| args: ["--print-width=100", "--tab-width=2"] | ||
|
|
||
| - repo: https://github.com/adrienverge/yamllint | ||
| rev: v1.28.0 | ||
| hooks: | ||
| - id: yamllint | ||
| types: [yaml] | ||
| args: | ||
| [ | ||
| "--strict", | ||
| "--config-data", | ||
| "{extends: default, rules: {line-length: {max: 100}, truthy: {check-keys: false}}}", | ||
| ] | ||
|
|
||
| - repo: https://github.com/igorshubovych/markdownlint-cli | ||
| rev: v0.32.2 | ||
| hooks: | ||
| - id: markdownlint | ||
| types: [markdown] | ||
| args: ["--config=.markdownlint.json"] | ||
|
|
||
| - repo: https://github.com/jorisroovers/gitlint | ||
| rev: v0.18.0 | ||
| hooks: | ||
| - id: gitlint | ||
| name: gitlint | ||
| args: ["--msg-filename"] | ||
| stages: [commit-msg] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,11 @@ | ||
| { | ||
| "description": "", | ||
| "source": "https://www.notion.so/1st-3rd-Person-Writing-ba3be8267da042498c5cc7430558c2a8", | ||
| "categories": [ | ||
| "Transformation" | ||
| ], | ||
| "categories": ["Transformation"], | ||
| "prompts": [ | ||
| { | ||
| "prompt": "in: i started the business in 2010 we sell gift boxes with chocolates and other things\nout: The business was founded in 2010, and they sell gift boxes with chocolates and other items.\n \nin: we don't have any investors\nout: The company has taken no outside funding.\n \nin: our only major risk is our supplier who we depend on for 90% of our stock\nout: The company's main challenge is its dependence on a single supplier for 90 percent of its stock.\n \nin: We have a lot of loyal customers and are growing rapidly\nout: The company has a lot of loyal customers and is growing rapidly.\n \nin: we don't use social media for marketing\nout: The company doesn't use social media for marketing.\n \nin: i am currently in the process of opening up a new store\nout: The company is currently in the process of opening up a new store.\n\nin:", | ||
| "response": "" | ||
| } | ||
| ] | ||
| } | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,35 +1,43 @@ | ||
| ## 1st to 3rd Person Writing | ||
| # 1st to 3rd Person Writing | ||
|
|
||
| ### Categories | ||
|
|
||
| `Transformation` | ||
|
|
||
| ### Examples | ||
|
|
||
| #### Example | ||
|
|
||
| Prompt | ||
|
|
||
| ``` | ||
| in: i started the business in 2010 we sell gift boxes with chocolates and other things | ||
| out: The business was founded in 2010, and they sell gift boxes with chocolates and other items. | ||
|
|
||
| in: we don't have any investors | ||
| out: The company has taken no outside funding. | ||
|
|
||
| in: our only major risk is our supplier who we depend on for 90% of our stock | ||
| out: The company's main challenge is its dependence on a single supplier for 90 percent of its stock. | ||
|
|
||
| in: We have a lot of loyal customers and are growing rapidly | ||
| out: The company has a lot of loyal customers and is growing rapidly. | ||
|
|
||
| in: we don't use social media for marketing | ||
| out: The company doesn't use social media for marketing. | ||
|
|
||
| in: i am currently in the process of opening up a new store | ||
| out: The company is currently in the process of opening up a new store. | ||
|
|
||
| in: | ||
| ``` | ||
|
|
||
| Response | ||
|
|
||
| ``` | ||
|
|
||
| ``` | ||
|
|
||
| ### Source | ||
|
|
||
| <https://www.notion.so/1st-3rd-Person-Writing-ba3be8267da042498c5cc7430558c2a8> |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,4 +8,4 @@ | |
| "response": "" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,11 @@ | ||
| { | ||
| "description": "With a described structure there is even less information given, consider the following prompt, now with a described JSON structure", | ||
| "source": "https://blog.devgenius.io/how-to-get-gpt3-to-output-in-json-4e14c46aa5b6", | ||
| "categories": [ | ||
| "Structure" | ||
| ], | ||
| "categories": ["Structure"], | ||
| "prompts": [ | ||
| { | ||
| "prompt": "Consider the following message:", | ||
| "response": "{\n \"sender\": \"Tarzan\",\n \"message\": \"Dear Jane, I am thinking about you when I am swinging through the jungle. Greetings, Tarzan\",\n \"list_of_words\": [\"Dear\", \"Jane\", \"I\", \"am\", \"thinking\", \"about\", \"you\", \"when\", \"I\", \"am\", \"swinging\", \"through\", \"the\", \"jungle\", \"Greetings\", \"Tarzan\"],\n \"addressed\": \"Jane\",\n \"amount_of_words\": 16\n}" | ||
| } | ||
| ] | ||
| } | ||
| } |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,4 +8,4 @@ | |
| "response": "" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,11 @@ | ||
| { | ||
| "description": "We have a letter from Tarzan from the jungle to Jane. We want to process this letter and put the relevant information in the JSON. Below you can see the full prompt where we first have that letter, then the processing instructions, and an example JSON structure.", | ||
| "source": "https://blog.devgenius.io/how-to-get-gpt3-to-output-in-json-4e14c46aa5b6", | ||
| "categories": [ | ||
| "Structure" | ||
| ], | ||
| "categories": ["Structure"], | ||
| "prompts": [ | ||
| { | ||
| "prompt": "Consider the following message:", | ||
| "response": "{\n \"sender\": \"Tarzan\",\n \"message\": \"Dear Jane, I am thinking about you when I am swinging through the jungle. Greetings, Tarzan\",\n \"list_of_words\": [\n \"Dear\",\n \"Jane\",\n \"I\",\n \"am\",\n \"thinking\",\n \"about\",\n \"you\",\n \"when\",\n \"I\",\n \"am\",\n \"swinging\",\n \"through\",\n \"the\",\n \"jungle\",\n \"Greetings\",\n \"Tarzan\",\n ],\n \"addressed\": \"Jane\",\n \"amount_of_words\": 16\n}" | ||
| } | ||
| ] | ||
| } | ||
| } |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.