-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure formatting and continuous integration (#28)
* formatting for frontend Signed-off-by: Swapnil Tripathi <[email protected]> * add core formatting Signed-off-by: Swapnil Tripathi <[email protected]> * add linting to frontend Signed-off-by: Swapnil Tripathi <[email protected]> * add ci workflow Signed-off-by: Swapnil Tripathi <[email protected]> * add issue templates Signed-off-by: Swapnil Tripathi <[email protected]> * Add pull request templates and some minor refactors Signed-off-by: Swapnil Tripathi <[email protected]> * fix bug report template Signed-off-by: Swapnil Tripathi <[email protected]> * format frontend Signed-off-by: Swapnil Tripathi <[email protected]> * format the backend Signed-off-by: Swapnil Tripathi <[email protected]> --------- Signed-off-by: Swapnil Tripathi <[email protected]>
- Loading branch information
Showing
56 changed files
with
2,167 additions
and
1,420 deletions.
There are no files selected for viewing
This file contains 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,25 @@ | ||
name: Feature Request | ||
description: "Suggest an idea for this project" | ||
title: "[Feature]: <title>" | ||
labels: ["enhancement"] | ||
body: | ||
- type: textarea | ||
attributes: | ||
label: Describe the feature | ||
description: A clear and concise description of what you want to happen. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: | | ||
If applicable, add images/mockups/screenshots to help present your vision of the feature | ||
description: Drag images into the text input below | ||
validations: | ||
required: false | ||
- type: checkboxes | ||
attributes: | ||
label: Is there an existing feature request for this? | ||
description: Please search to see if an issue already exists for the feature you are requesting. | ||
options: | ||
- label: I have searched the existing issues | ||
required: true |
This file contains 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,59 @@ | ||
name: Bug | ||
description: File a bug/issue | ||
title: "[BUG] <title>" | ||
labels: ["bug", "needs triage"] | ||
body: | ||
- type: checkboxes | ||
attributes: | ||
label: Is there an existing issue for this? | ||
description: Please search to see if an issue already exists for the bug you encountered. | ||
options: | ||
- label: I have searched the existing issues | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Current Behavior | ||
description: A concise description of what you're experiencing. | ||
validations: | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: Expected Behavior | ||
description: A concise description of what you expected to happen. | ||
validations: | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: Steps To Reproduce | ||
description: Steps to reproduce the behavior. | ||
placeholder: | | ||
1. In this environment... | ||
2. With this config... | ||
3. Run '...' | ||
4. See error... | ||
validations: | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: Environment | ||
description: | | ||
examples: | ||
- **OS**: Ubuntu 20.04 | ||
- **Node**: 13.14.0 | ||
- **Python**: 3.12.0 | ||
value: | | ||
- OS: | ||
- Node: | ||
- Python: | ||
render: markdown | ||
validations: | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: Anything else? | ||
description: | | ||
Links? References? Anything that will give us more context about the issue you are encountering! | ||
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in. | ||
validations: | ||
required: false |
This file contains 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 @@ | ||
blank_issues_enabled: false |
This file contains 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,50 @@ | ||
# Pull Request Checklist | ||
|
||
**Before submitting, make sure you've checked the following:** | ||
|
||
- [ ] **Target branch:** Please verify that the pull request targets the `dev` branch. | ||
- [ ] **Description:** Provide a concise description of the changes made in this pull request. | ||
- [ ] **Changelog:** Ensure a changelog entry is added below. In the changelog only keep relevant entries. | ||
- [ ] **Documentation:** Have you updated relevant documentation, or other documentation sources? | ||
- [ ] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? | ||
- [ ] **Testing:** Have you written and run sufficient tests for validating the changes? | ||
- [ ] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards? | ||
|
||
# Changelog Entry | ||
|
||
## Description | ||
|
||
Describe your change here | ||
|
||
### Added | ||
|
||
- [List any new features, functionalities, or additions] | ||
|
||
### Changed | ||
|
||
- [List any changes, updates, refactorings, or optimizations] | ||
|
||
### Deprecated | ||
|
||
- [List any deprecated functionality or features that have been removed] | ||
|
||
### Removed | ||
|
||
- [List any removed features, files, or functionalities] | ||
|
||
### Fixed | ||
|
||
- [List any fixes, corrections, or bug fixes] | ||
|
||
### Security | ||
|
||
- [List any new or updated security-related changes, including vulnerability fixes] | ||
|
||
### Additional Information | ||
|
||
- [Insert any additional context, notes, or explanations for the changes] | ||
- [Reference any related issues, commits, or other relevant information] | ||
|
||
### Screenshots or Videos | ||
|
||
- [Attach any relevant screenshots or videos demonstrating the changes] |
This file contains 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,62 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
pull_request: | ||
branches: | ||
- "**" | ||
|
||
jobs: | ||
format-frontend: | ||
name: 'Format Frontend' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
|
||
- name: Install Dependencies | ||
run: npm install | ||
|
||
- name: Format Frontend | ||
run: npm run format | ||
|
||
- name: Post Formatting Check | ||
run: git diff --exit-code | ||
|
||
format-core: | ||
name: 'Format Core' | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
python-version: [3.12] | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install black | ||
- name: Format Backend | ||
run: | | ||
cd src/core | ||
sh scripts/format.sh | ||
- name: Post Formatting Check | ||
run: git diff --exit-code |
This file contains 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 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 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.