-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 6c3bc67
Showing
32 changed files
with
3,777 additions
and
0 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,38 @@ | ||
# Git | ||
.git | ||
.gitignore | ||
.github | ||
|
||
# Docker | ||
.dockerignore | ||
|
||
# IDE | ||
.idea | ||
.vscode | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
**/__pycache__/ | ||
*.pyc | ||
*.pyo | ||
*.pyd | ||
.Python | ||
*.py[cod] | ||
*$py.class | ||
.pytest_cache/ | ||
..mypy_cache/ | ||
|
||
# poetry | ||
.venv | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Virtual environment | ||
.venv | ||
venv | ||
|
||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
._* |
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,24 @@ | ||
# Check http://editorconfig.org for more information | ||
# This is the main config file for this project: | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 2 | ||
trim_trailing_whitespace = true | ||
|
||
[*.{py, pyi}] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[Makefile] | ||
indent_style = tab | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[*.{diff,patch}] | ||
trim_trailing_whitespace = 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,17 @@ | ||
# Number of days of inactivity before an issue becomes stale | ||
daysUntilStale: 60 | ||
# Number of days of inactivity before a stale issue is closed | ||
daysUntilClose: 7 | ||
# Issues with these labels will never be considered stale | ||
exemptLabels: | ||
- pinned | ||
- security | ||
# Label to use when marking an issue as stale | ||
staleLabel: wontfix | ||
# Comment to post when marking an issue as stale. Set to `false` to disable | ||
markComment: > | ||
This issue has been automatically marked as stale because it has not had | ||
recent activity. It will be closed if no further activity occurs. Thank you | ||
for your contributions. | ||
# Comment to post when closing a stale issue. Set to `false` to disable | ||
closeComment: 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,42 @@ | ||
--- | ||
name: 🐛 Bug report | ||
about: If something isn't working 🔧 | ||
title: '' | ||
labels: bug | ||
assignees: | ||
--- | ||
|
||
## 🐛 Bug Report | ||
|
||
<!-- A clear and concise description of what the bug is. --> | ||
|
||
## 🔬 How To Reproduce | ||
|
||
Steps to reproduce the behavior: | ||
|
||
1. ... | ||
|
||
### Code sample | ||
|
||
<!-- If applicable, attach a minimal code sample to reproduce the decried issue. --> | ||
|
||
### Environment | ||
|
||
* OS: [e.g. Linux / Windows / macOS] | ||
* Python version, get it with: | ||
|
||
```bash | ||
python --version | ||
``` | ||
|
||
### Screenshots | ||
|
||
<!-- If applicable, add screenshots to help explain your problem. --> | ||
|
||
## 📈 Expected behavior | ||
|
||
<!-- A clear and concise description of what you expected to happen. --> | ||
|
||
## 📎 Additional context | ||
|
||
<!-- Add any other context about the problem here. --> |
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,3 @@ | ||
# Configuration: https://help.github.com/en/github/building-a-strong-community/configuring-issue-templates-for-your-repository | ||
|
||
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,23 @@ | ||
--- | ||
name: 🚀 Feature request | ||
about: Suggest an idea for this project 🏖 | ||
title: '' | ||
labels: enhancement | ||
assignees: | ||
--- | ||
|
||
## 🚀 Feature Request | ||
|
||
<!-- A clear and concise description of the feature proposal. --> | ||
|
||
## 🔈 Motivation | ||
|
||
<!-- Please describe the motivation for this proposal. --> | ||
|
||
## 🛰 Alternatives | ||
|
||
<!-- A clear and concise description of any alternative solutions or features you've considered. --> | ||
|
||
## 📎 Additional context | ||
|
||
<!-- Add any other context or screenshots about the feature request here. --> |
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: ❓ Question | ||
about: Ask a question about this project 🎓 | ||
title: '' | ||
labels: question | ||
assignees: | ||
--- | ||
|
||
## Checklist | ||
|
||
<!-- Mark with an `x` all the checkboxes that apply (like `[x]`) --> | ||
|
||
- [ ] I've searched the project's [`issues`](https://github.com/rspy/rspy/issues?q=is%3Aissue). | ||
|
||
## ❓ Question | ||
|
||
<!-- What is your question --> | ||
|
||
How can I [...]? | ||
|
||
Is it possible to [...]? | ||
|
||
## 📎 Additional context | ||
|
||
<!-- Add any other context or screenshots about the feature request here. --> |
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,28 @@ | ||
## Description | ||
|
||
<!-- Add a more detailed description of the changes if needed. --> | ||
|
||
## Related Issue | ||
|
||
<!-- If your PR refers to a related issue, link it here. --> | ||
|
||
## Type of Change | ||
|
||
<!-- Mark with an `x` all the checkboxes that apply (like `[x]`) --> | ||
|
||
- [ ] 📚 Examples / docs / tutorials / dependencies update | ||
- [ ] 🔧 Bug fix (non-breaking change which fixes an issue) | ||
- [ ] 🥂 Improvement (non-breaking change which improves an existing feature) | ||
- [ ] 🚀 New feature (non-breaking change which adds functionality) | ||
- [ ] 💥 Breaking change (fix or feature that would cause existing functionality to change) | ||
- [ ] 🔐 Security fix | ||
|
||
## Checklist | ||
|
||
<!-- Mark with an `x` all the checkboxes that apply (like `[x]`) --> | ||
|
||
- [ ] I've read the [`CODE_OF_CONDUCT.md`](https://github.com/rspy/rspy/blob/master/CODE_OF_CONDUCT.md) document. | ||
- [ ] I've read the [`CONTRIBUTING.md`](https://github.com/rspy/rspy/blob/master/CONTRIBUTING.md) guide. | ||
- [ ] I've updated the code style using `make codestyle`. | ||
- [ ] I've written tests for all new methods and classes that I created. | ||
- [ ] I've written the docstring in Google format for all the methods and classes that I used. |
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,35 @@ | ||
# Configuration: https://dependabot.com/docs/config-file/ | ||
# Docs: https://docs.github.com/en/github/administering-a-repository/keeping-your-dependencies-updated-automatically | ||
|
||
version: 2 | ||
|
||
updates: | ||
- package-ecosystem: "pip" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
allow: | ||
- dependency-type: "all" | ||
commit-message: | ||
prefix: ":arrow_up:" | ||
open-pull-requests-limit: 50 | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
allow: | ||
- dependency-type: "all" | ||
commit-message: | ||
prefix: ":arrow_up:" | ||
open-pull-requests-limit: 50 | ||
|
||
- package-ecosystem: "docker" | ||
directory: "/docker" | ||
schedule: | ||
interval: "weekly" | ||
allow: | ||
- dependency-type: "all" | ||
commit-message: | ||
prefix: ":arrow_up:" | ||
open-pull-requests-limit: 50 |
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,28 @@ | ||
# Release drafter configuration https://github.com/release-drafter/release-drafter#configuration | ||
# Emojis were chosen to match the https://gitmoji.carloscuesta.me/ | ||
|
||
name-template: "v$NEXT_PATCH_VERSION" | ||
tag-template: "v$NEXT_PATCH_VERSION" | ||
|
||
categories: | ||
- title: ":rocket: Features" | ||
labels: [enhancement, feature] | ||
- title: ":wrench: Fixes & Refactoring" | ||
labels: [bug, refactoring, bugfix, fix] | ||
- title: ":package: Build System & CI/CD" | ||
labels: [build, ci, testing] | ||
- title: ":boom: Breaking Changes" | ||
labels: [breaking] | ||
- title: ":pencil: Documentation" | ||
labels: [documentation] | ||
- title: ":arrow_up: Dependencies updates" | ||
labels: [dependencies] | ||
|
||
template: | | ||
## What’s Changed | ||
$CHANGES | ||
## :busts_in_silhouette: List of contributors | ||
$CONTRIBUTORS |
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: build | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install poetry | ||
run: make poetry-download | ||
|
||
- name: Set up cache | ||
uses: actions/[email protected] | ||
with: | ||
path: .venv | ||
key: venv-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('poetry.lock') }} | ||
- name: Install dependencies | ||
run: | | ||
poetry config virtualenvs.in-project true | ||
poetry install | ||
- name: Run style checks | ||
run: | | ||
make check-codestyle | ||
- name: Run tests | ||
run: | | ||
make test | ||
- name: Run safety checks | ||
run: | | ||
make check-safety |
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,16 @@ | ||
name: Greetings | ||
|
||
on: [pull_request, issues] | ||
|
||
jobs: | ||
greeting: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/first-interaction@v1 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
pr-message: 'Hello @${{ github.actor }}, thank you for submitting a PR! We will respond as soon as possible.' | ||
issue-message: | | ||
Hello @${{ github.actor }}, thank you for your interest in our work! | ||
If this is a bug report, please provide screenshots and **minimum viable code to reproduce your issue**, otherwise we can not help you. |
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,16 @@ | ||
name: Release Drafter | ||
|
||
on: | ||
push: | ||
# branches to consider in the event; optional, defaults to all | ||
branches: | ||
- master | ||
|
||
jobs: | ||
update_release_draft: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Drafts your next Release notes as Pull Requests are merged into "master" | ||
- uses: release-drafter/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Oops, something went wrong.