-
-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'MLDSAI:main' into update
- Loading branch information
Showing
65 changed files
with
9,140 additions
and
373 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,29 @@ | ||
name: Bug Report | ||
description: File a bug report | ||
title: "[Bug]: " | ||
labels: bug | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking the time to fill out this bug report! | ||
- type: textarea | ||
id: describe-bug | ||
attributes: | ||
label: Describe the bug | ||
description: What behaviour was expected and what actually happened? Include screenshots and log output where useful. | ||
placeholder: I expected ... but what actually happened was ... | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: steps | ||
attributes: | ||
label: To Reproduce | ||
description: What Operating System did you use and steps would we take to reproduce the behaviour? | ||
placeholder: "I use [macOS/Microsoft Windows]. | ||
Steps: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' " | ||
validations: | ||
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 @@ | ||
blank_issues_enabled: 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,20 @@ | ||
name: "Feature Request" | ||
description: Submit a proposal for a new OpenAdapt feature | ||
labels: enhancement | ||
body: | ||
- type: textarea | ||
id: feature-request | ||
validations: | ||
required: true | ||
attributes: | ||
label: Feature request | ||
description: A clear and concise description of the feature proposal. Please provide links to any relevant resources. | ||
|
||
- type: textarea | ||
id: motivation | ||
validations: | ||
required: false | ||
attributes: | ||
label: Motivation | ||
description: Please outline the purpose for the proposal (e.g., is it related to a problem?). Add any relevant links (e.g. GitHub issues). | ||
placeholder: I'm always frustrated when [...] so this feature would [...]. |
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,26 @@ | ||
<!-- Thank you for submitting a pull request! To ensure a prompt review of your changes, please provide the following information. --> | ||
|
||
**What kind of change does this PR introduce?** | ||
|
||
<!-- E.g. a bugfix, feature, refactoring, etc… --> | ||
|
||
**Summary** | ||
|
||
<!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? Try to link to an open issue. --> | ||
|
||
**Checklist** | ||
* [ ] My code follows the style guidelines of OpenAdapt | ||
* [ ] I have perfomed a self-review of my code | ||
* [ ] If applicable, I have added tests to prove my fix is functional/effective | ||
* [ ] I have linted my code locally prior to submission | ||
* [ ] I have commented my code, particularly in hard-to-understand areas | ||
* [ ] I have made corresponding changes to the documentation (e.g. README.md, requirements.txt) | ||
* [ ] New and existing unit tests pass locally with my changes | ||
|
||
**How can your code be run and tested?** | ||
|
||
<!-- See the README.md for examples. Include test output. --> | ||
|
||
|
||
**Other information** | ||
<!-- Delete this subheading if no additional context is needed. --> |
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,42 @@ | ||
name: Python CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
run-ci: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install wheel | ||
pip install -r requirements.txt | ||
pip install -e . | ||
- name: Check formatting with Black | ||
run: | | ||
black --check --exclude "(src|alembic)/" . | ||
- name: Run headless tests | ||
uses: coactions/setup-xvfb@v1 | ||
with: | ||
run: python -m pytest | ||
working-directory: ./ # Optional: Specify the working directory if needed | ||
options: # Optional: Add any additional options or arguments for pytest | ||
|
||
- name: flake8 Lint | ||
uses: py-actions/flake8@v2 | ||
with: | ||
plugins: "flake8-docstrings" | ||
extra-args: "--docstring-convention=google --exclude=alembic/versions" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# How to contribute | ||
|
||
We would love to implement your contributions to this project! We simply ask that you observe the following guidelines. | ||
|
||
## Code Style | ||
|
||
This project follows the [Google Python Style Guide](https://google.github.io/styleguide/pyguide.html). | ||
|
||
|
||
## Creating Issue | ||
In order to effectively communicate any bugs or request new features, please select the appropriate form. If none of the options suit your needs, you can click on "Open a blank issue" located at the bottom. | ||
|
||
## Testing | ||
[GitHub Actions](https://github.com/MLDSAI/OpenAdapt/actions/new) are automatically run on each pull request to ensure consistent behaviour and style. The Actions are composed of PyTest, [black](https://github.com/psf/black) and [flake8](https://flake8.pycqa.org/en/latest/user/index.html). | ||
|
||
You can run these tests on your own computer by downloading the depencencies in requirements.txt and then running pytest in the root directory. | ||
|
||
## Pull Request Format | ||
|
||
To speed up the review process, please use the provided pull request template and create a draft pull request to get initial feedback. | ||
|
||
The pull request template includes areas to explain the changes, and a checklist with boxes for code style, testing, and documenttation. | ||
|
||
## Submitting Changes | ||
|
||
1. Fork the current repository | ||
2. Make a branch to work on, or use the main branch | ||
3. Push desired changes onto the branch in step 2 | ||
4. Submit a pull request with the branch in step 2 as the head ref and the MLDSAI/OpenAdapt main as the base ref | ||
- Note: may need to click "compare across forks" | ||
5. Update pull request using feedback | ||
- this step may not be necessary, or may need to be repeated | ||
6. Celebrate contributing to OpenAdapt! |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
"""add PerformanceStat | ||
Revision ID: 104d4a614d95 | ||
Revises: b2dc41850120 | ||
Create Date: 2023-05-27 02:59:14.032373 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '104d4a614d95' | ||
down_revision = 'b2dc41850120' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.create_table('performance_stat', | ||
sa.Column('id', sa.Integer(), nullable=False), | ||
sa.Column('recording_timestamp', sa.Integer(), nullable=True), | ||
sa.Column('event_type', sa.String(), nullable=True), | ||
sa.Column('start_time', sa.Integer(), nullable=True), | ||
sa.Column('end_time', sa.Integer(), nullable=True), | ||
sa.Column('window_id', sa.String(), nullable=True), | ||
sa.PrimaryKeyConstraint('id', name=op.f('pk_performance_stat')) | ||
) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_table('performance_stat') | ||
# ### end Alembic commands ### |
Oops, something went wrong.